Skip to content

Weekly Trivy Scan

Weekly Trivy Scan #4

Workflow file for this run

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 .