Skip to content

chore(ci): update actions/checkout action to v7 (main) - autoclosed #26

chore(ci): update actions/checkout action to v7 (main) - autoclosed

chore(ci): update actions/checkout action to v7 (main) - autoclosed #26

Workflow file for this run

name: trivy-scanning
on:
push:
branches:
- main
- "v*"
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Download Rancher's VEX Hub report
run: |
curl -fsSL -H "Accept: application/vnd.git-lfs+json" \
"https://media.githubusercontent.com/media/rancher/vexhub/main/reports/rancher.openvex.json" \
-o rancher.openvex.json
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
scan-type: "fs"
ignore-unfixed: true
format: "sarif"
output: "trivy-results.sarif"
severity: "CRITICAL,HIGH,MEDIUM"
env:
TRIVY_VEX: rancher.openvex.json
TRIVY_SHOW_SUPPRESSED: true
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@ebcb5b36ded6beda4ceefea6a8bc4cc885255bb3 # v3.34.1
with:
sarif_file: "trivy-results.sarif"