Skip to content

Commit

Permalink
[#227] Update trivy scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
nvminhtue committed Jan 9, 2024
1 parent 190d62d commit dbd86c7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test-generated-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,18 @@ jobs:
run: terraform fmt -recursive -check

- name: Run trivy linter
uses: aquasecurity/trivy-action@0.12.0
uses: aquasecurity/trivy-action@0.16.1
with:
image-ref: '.'
scan-type: 'fs'
scan-ref: '.'
scan-type: 'fs'
hide-progress: false
format: 'json'
output: 'trivy-results.sarif'
ignore-unfixed: false
trivy-config: trivy.yaml

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
12 changes: 12 additions & 0 deletions templates/addons/versionControl/github/.github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,15 @@ jobs:
uses: aquasecurity/[email protected]
with:
image-ref: '.'
scan-ref: '.'
scan-type: 'fs'
hide-progress: false
format: 'json'
output: 'trivy-results.sarif'
ignore-unfixed: false
trivy-config: trivy.yaml

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

0 comments on commit dbd86c7

Please sign in to comment.