Update python:3.13.0-slim-bookworm Docker digest to eda73ca (#406) #1025
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 scanner | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
repository-scan: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
- name: Run Trivy scanner on repository | |
uses: aquasecurity/trivy-action@0.29.0 | |
with: | |
scan-type: repo | |
ignore-unfixed: true | |
vuln-type: "os,library" | |
severity: "MEDIUM,HIGH,CRITICAL" | |
format: "sarif" | |
output: "trivy-repository-scan.sarif" | |
env: | |
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,aquasec/trivy-db,ghcr.io/aquasecurity/trivy-db | |
- name: Upload Trivy scan results to GitHub Security | |
uses: github/codeql-action/upload-sarif@v3.27.5 | |
with: | |
# Path to SARIF file relative to the root of the repository | |
sarif_file: trivy-repository-scan.sarif | |
# Optional category for the results | |
# Used to differentiate multiple results for one commit | |
category: repository-scan |