Skip to content

Use enum.Flag for ActionIfExists #105

Use enum.Flag for ActionIfExists

Use enum.Flag for ActionIfExists #105

Workflow file for this run

name: Trivy scan
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]
jobs:
trivy:
name: trivy scan
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Run Trivy vulnerability scanner with rootfs command
uses: aquasecurity/trivy-action@master
with:
scan-type: 'rootfs'
scan-ref: '.'
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'