Skip to content

Commit

Permalink
add perm to upload sarif results
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixing Xu committed Jul 27, 2023
1 parent 3c80730 commit 3002fac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/scan-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ env:
COMPARE_TAG: latest

jobs:
trivy-edge:
trivy:
name: Run Trivy vulnerability scanner
permissions:
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
runs-on: ubuntu-latest
continue-on-error: true

Expand Down Expand Up @@ -46,8 +48,7 @@ jobs:
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
limit-severities-for-sarif: true
format: template
template: '@/contrib/sarif.tpl'
format: sarif
output: trivy-results.sarif
timeout: 20m

Expand Down

0 comments on commit 3002fac

Please sign in to comment.