🌱 Run release workflow periodically #137
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 | |
on: | |
push: | |
branches: [ "main", "release-*" ] | |
pull_request: | |
branches: [ "main" ] | |
schedule: | |
- cron: '37 1 * * *' | |
permissions: | |
contents: read | |
jobs: | |
scan: | |
permissions: | |
contents: read | |
security-events: write | |
name: Scan | |
runs-on: "ubuntu-20.04" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build an image | |
run: | | |
TAG=${{ github.sha }} ARCH=amd64 make docker-build | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/trivy-action@fbd16365eb88e12433951383f5e99bd901fc618f | |
with: | |
image-ref: 'ghcr.io/rancher-sandbox/rancher-turtles-amd64:${{ github.sha }}' | |
format: 'sarif' | |
output: 'trivy-results.sarif' | |
severity: 'CRITICAL,HIGH' | |
- name: Upload Trivy scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: 'trivy-results.sarif' |