Weekly Trivy Scan #3
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: Weekly Trivy Scan | |
on: | |
schedule: | |
- cron: '0 0 * * 1' # Run every Monday at midnight | |
workflow_dispatch: | |
jobs: | |
trivy_scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Trivy | |
run: | | |
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.56.2 | |
- name: Run Trivy scan | |
run: | | |
trivy fs --security-checks vuln . |