Skip to content

108 review the new GitHub attestations #31

108 review the new GitHub attestations

108 review the new GitHub attestations #31

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Run Trivy
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # 0.24.0
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'
severity: "MEDIUM,HIGH,CRITICAL"
#scanners: "vuln"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'