Skip to content

Commit

Permalink
Upgrade trivy scans (#997)
Browse files Browse the repository at this point in the history
Add: 
* Upgrade trivy scans
* Increase scans severity in trivy output
* branch parameter to action

---------

Co-authored-by: GH Action - Upstream Sync <[email protected]>
  • Loading branch information
zLukas and actions-user authored Nov 4, 2024
1 parent b40e87a commit 633afae
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
branch:
description: 'branch to run scans on'
default: 'main'
type: string
type: string


env:
BUILD_TYPE: Release
Expand Down Expand Up @@ -63,6 +64,18 @@ jobs:
uses: aquasecurity/trivy-action@7c2007bcb556501da015201bcba5aa14069b74e2 # v0.23.0
with:
image-ref: 'mtl:latest'
format: 'sarif'
scanners: 'vuln,secret,misconfig'
exit-code: '1'
output: 'Trivy-image-scan-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
with:
sarif_file: 'Trivy-image-scan-results.sarif'
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: trivy-results
path: 'trivy-results.sarif'
format: 'table'
exit-code: '0'
ignore-unfixed: true
Expand All @@ -74,3 +87,4 @@ jobs:
with:
name: trivy-results
path: 'Trivy-image-scan-results.txt'

0 comments on commit 633afae

Please sign in to comment.