Merge pull request #255 from golisai/nat #113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: trivy scans | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- '.github/workflows/trivy-scans.yml' | |
- '.trivyignore' | |
jobs: | |
trivy-fs-scan: | |
# Use 20.04.5 until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16450 is resolved | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run trivy filesystem scan | |
uses: aquasecurity/trivy-action@0.8.0 | |
with: | |
scan-type: 'fs' | |
scan-ref: '.' | |
skip-dirs: 'docs,cmake,ext' | |
format: 'table' | |
exit-code: '1' | |
severity: 'CRITICAL,HIGH' | |
ignore-unfixed: true | |
vuln-type: 'os,library' | |
timeout: 10m | |