Merge pull request #22517 from BerriAI/fix/test-linting-secrets-context

Fix invalid secrets context in test-linting workflow
This commit is contained in:
Julio Quinteros Pro 2026-03-01 16:58:19 -03:00 committed by GitHub
commit 5a35dfc258
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,9 +97,12 @@ jobs:
pytest tests/litellm/test_no_hardcoded_secrets.py -v
- name: Run ggshield secret scan
if: ${{ secrets.GITGUARDIAN_API_KEY != '' }}
env:
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
run: |
pip install ggshield
ggshield secret scan repo .
if [ -n "$GITGUARDIAN_API_KEY" ]; then
pip install ggshield
ggshield secret scan repo .
else
echo "GITGUARDIAN_API_KEY not set, skipping ggshield scan"
fi