Skip to content

Commit

Permalink
trivy
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanleung committed Oct 8, 2024
1 parent f9dba45 commit 52313cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/security_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: Run Safety check
run: safety check -r requirements.txt
continue-on-error: true

- name: Run Bandit
run: bandit -r . -f custom
Expand All @@ -36,9 +37,11 @@ jobs:
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: 'trivy-results.sarif'
wait-for-processing: true

0 comments on commit 52313cc

Please sign in to comment.