Skip to content

Commit 3d4c31f

Browse files
osteeleclaude
andcommitted
fix: correct secrets reference in test.yml workflow
The secrets context cannot be used directly in step-level if conditions. Use env variable to check if secret exists. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f4219ce commit 3d4c31f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ jobs:
117117
118118
- name: Create coverage badge
119119
uses: schneegans/dynamic-badges-action@v1.7.0
120-
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') && secrets.GIST_SECRET != ''
120+
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') && env.GIST_SECRET != '' }}
121121
continue-on-error: true
122+
env:
123+
GIST_SECRET: ${{ secrets.GIST_SECRET }}
122124
with:
123125
auth: ${{ secrets.GIST_SECRET }}
124126
gistID: ${{ secrets.GIST_ID }}

0 commit comments

Comments
 (0)