Skip to content

Bump the all-actions group with 2 updates (#1051) #283

Bump the all-actions group with 2 updates (#1051)

Bump the all-actions group with 2 updates (#1051) #283

name: Trivy Security Scan
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
trivy_scan:
name: Trivy Security Scan
runs-on: ubuntu-24.04
permissions:
contents: read # Required to checkout and read repo files
security-events: write # Required to upload SARIF files to Security tab
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: "fs"
ignore-unfixed: true
format: "sarif"
output: "trivy-results.sarif"
severity: "CRITICAL,HIGH"
- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
with:
sarif_file: "trivy-results.sarif"