Skip to content

ci: use ubuntu 24.04 as 20.04 was unsupported (backport #51) #159

ci: use ubuntu 24.04 as 20.04 was unsupported (backport #51)

ci: use ubuntu 24.04 as 20.04 was unsupported (backport #51) #159

Workflow file for this run

name: trivy-scanning
on:
push:
branches:
- main
- v*
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'