Skip to content

Commit 92d3a97

Browse files
committed
ci: move secret guard out of job-level condition
1 parent b2a72db commit 92d3a97

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/install-matrix.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115

116116
live-claude-haiku:
117117
name: Live Claude + Haiku validation (manual)
118-
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.run_live_claude == 'true' && secrets.ANTHROPIC_API_KEY != '' }}
118+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.run_live_claude == 'true' }}
119119
runs-on: ubuntu-latest
120120
needs: api-smoke
121121
continue-on-error: true
@@ -140,6 +140,15 @@ jobs:
140140
- name: Add Claude CLI path
141141
run: echo "$HOME/.local/bin" >> "$GITHUB_PATH"
142142

143+
- name: Verify ANTHROPIC_API_KEY is configured
144+
env:
145+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
146+
run: |
147+
if [ -z "${ANTHROPIC_API_KEY:-}" ]; then
148+
echo "ANTHROPIC_API_KEY secret is required for live Claude validation."
149+
exit 1
150+
fi
151+
143152
- name: Configure Claude auth from API key
144153
env:
145154
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

0 commit comments

Comments
 (0)