Skip to content

Commit 5318088

Browse files
committed
Upload bandit results to security tab
1 parent 515c227 commit 5318088

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/security-scan.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ jobs:
9898
targets: "."
9999
exclude: "tests"
100100

101+
- name: Upload SARIF results to GitHub Security tab
102+
if: github.ref == 'refs/heads/main'
103+
uses: github/codeql-action/upload-sarif@86b04fb0e47484f7282357688f21d5d0e32175fe
104+
with:
105+
sarif_file: results.sarif
106+
category: bandit-security-scan
107+
continue-on-error: true
108+
101109
- name: Upload SARIF as artifact
102110
uses: actions/upload-artifact@v4
103111
with:

0 commit comments

Comments
 (0)