Bump actions/checkout from 3 to 4 #65
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 of this GitHub Actions workflow. | |
name: Trivy Security Scan | |
on: | |
# Scan changed files in PRs (diff-aware scanning): | |
pull_request: {} | |
# Scan mainline branches and report all findings: | |
push: | |
branches: ["main"] | |
# Allows you to start manually | |
workflow_dispatch: {} | |
jobs: | |
scan: | |
# You can change the Scanner here to any who performs SARIF output | |
name: Trivy Scan | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run Trivy vulnerability scanner in repo mode | |
uses: aquasecurity/trivy-action@master | |
with: | |
scan-type: "fs" | |
ignore-unfixed: true | |
format: "sarif" | |
output: results.sarif | |
severity: "CRITICAL" | |
- name: Upload results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: results.sarif | |
path: results.sarif |