Skip to content

Commit ae535a8

Browse files
committed
Fix running safety check by disabling optional telemetry and adding API key support
1 parent 86f6bb7 commit ae535a8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/branch.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ jobs:
5454
run: uv run bandit .
5555

5656
- name: Run safety
57-
run: uv run safety check
57+
run: uv run safety --disable-optional-telemetry --stage cicd scan
58+
env:
59+
SAFETY_API_KEY: ${{ secrets.SAFETY_API_KEY }}
5860

5961
- name: Check for acceptable licenses
6062
run: uv run pip-licenses --allow-only="MIT License;BSD License;Python Software Foundation License;Apache Software License;Mozilla Public License 2.0 (MPL 2.0);ISC License (ISCL);The Unlicense (Unlicense);UNKNOWN;Apache-2.0"

0 commit comments

Comments
 (0)