Skip to content

Create trivy.yaml

Create trivy.yaml #2

Workflow file for this run

name: trivy-fs
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
scan-ref: '.'
trivy-config: trivy.yaml
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

Check failure on line 23 in .github/workflows/trivy-fs.yml

View workflow run for this annotation

GitHub Actions / trivy-fs

Invalid workflow file

The workflow is not valid. .github/workflows/trivy-fs.yml (Line: 23, Col: 11): A mapping was not expected