fix(ci): use secrets context in ggshield step condition

Step-level env is not visible to the if condition — reference
secrets directly so ggshield actually runs when the key is configured.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Julio Quinteros Pro 2026-02-26 12:51:28 -03:00
parent 05c3a95da8
commit 1c376afc85

View File

@ -97,7 +97,7 @@ jobs:
pytest tests/litellm/test_no_hardcoded_secrets.py -v
- name: Run ggshield secret scan
if: env.GITGUARDIAN_API_KEY != ''
if: ${{ secrets.GITGUARDIAN_API_KEY != '' }}
env:
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
run: |