Skip to content

Commit 4658109

Browse files
committed
bandit fix
1 parent cf7d322 commit 4658109

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/security.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ jobs:
2828
run: |
2929
bandit -r . \
3030
-x tests,venv,.venv,build,dist,__pycache__,.github \
31-
-f sarif -o bandit.sarif || true
31+
-f sarif -o bandit.sarif
32+
continue-on-error: true
33+
34+
- name: Check SARIF file exists
35+
run: |
36+
if [ ! -f bandit.sarif ]; then
37+
echo "bandit.sarif not found!"
38+
echo "{}" > bandit.sarif
39+
fi
3240
3341
- name: Upload SARIF to code scanning
3442
if: always()

0 commit comments

Comments
 (0)