2024 03 16 #228
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 code and vulnerability scanning | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '00 12 * * *' | |
permissions: | |
contents: read | |
jobs: | |
trivy-scan: | |
name: Trivy Scan | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
actions: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run Trivy code and vulnerability scanner on repo | |
uses: aquasecurity/[email protected] | |
with: | |
scan-type: repo | |
format: sarif | |
output: trivy-results.sarif | |
severity: CRITICAL,HIGH,MEDIUM,LOW | |
- name: Run Trivy code and vulnerability scanner on filesystem | |
uses: aquasecurity/[email protected] | |
with: | |
scan-type: fs | |
format: sarif | |
output: trivy-results.sarif | |
severity: CRITICAL,HIGH,MEDIUM,LOW |