Skip to content

Update owasp-scan.yaml #214

Update owasp-scan.yaml

Update owasp-scan.yaml #214

Workflow file for this run

name: trivy-repo-scan
on:
push:
branches:
- main
pull_request:
workflow_call:
jobs:
tricy-repo-scan:
name: trivy-repo-scan
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'
severity: 'CRITICAL'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: 'trivy-results.sarif'