Skip to content

Commit

Permalink
Merge commit 'refs/pull/2820/head' of https://github.com/BitBoxSwiss/…
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Jul 18, 2024
2 parents 32bc3d6 + 6909ccb commit ccc3d38
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,16 @@ on:
- master
jobs:
trivy:
permissions:
# for github/codeql-action/upload-sarif to upload SARIF results
security-events: write
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in repo mode
- name: Run Trivy
uses: aquasecurity/trivy-action@0.24.0
with:
scan-type: 'fs'
format: 'table'
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@v3
with:
sarif_file: 'trivy-results.sarif'
scan-type: 'fs'
exit-code: '1'
severity: 'MEDIUM,HIGH,CRITICAL'

0 comments on commit ccc3d38

Please sign in to comment.