Skip to content

Commit

Permalink
Update action to scan image
Browse files Browse the repository at this point in the history
  • Loading branch information
welpaolo committed Sep 12, 2024
1 parent a0a4ba5 commit 7d22375
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ jobs:
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
scan-type: 'image'
format: 'github'
output: 'dependency-results.sbom.json'
image-ref: 'trivy/charmed-spark:test'
github-pat: ${{ secrets.GITHUB_TOKEN }}
severity: "MEDIUM,HIGH,CRITICAL"
scanners: "vuln"

- name: Upload trivy report as a Github artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 7d22375

Please sign in to comment.