mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Merge pull request #22517 from BerriAI/fix/test-linting-secrets-context
Fix invalid secrets context in test-linting workflow
This commit is contained in:
commit
5a35dfc258
1 changed files with 6 additions and 3 deletions
9
.github/workflows/test-linting.yml
vendored
9
.github/workflows/test-linting.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue