Bump aquasecurity/trivy-action from 0.20.0 to 0.24.0 #92
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Trivy Security Check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
trivy-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run Trivy vulnerability scanner in repo mode | |
uses: aquasecurity/[email protected] | |
with: | |
scan-type: "fs" | |
ignore-unfixed: true | |
exit-code: '1' | |
format: "sarif" | |
output: "trivy-results.sarif" | |
severity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL" | |
- name: Upload Trivy scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@v3 | |
if: always() | |
with: | |
sarif_file: "trivy-results.sarif" |