Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix invalid secrets context in test-linting workflow

Julio Quinteros Prob40b1e6a4b8d
diff --git a/.github/workflows/test-linting.yml b/.github/workflows/test-linting.yml
index 48bd21e0e3c..017aef1cc46 100644
--- a/.github/workflows/test-linting.yml
+++ b/.github/workflows/test-linting.yml
@@ -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