Resolve merge conflicts #364
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: Scan for Vulnerabilities - Trivy | |
on: | |
push: | |
branches: [dev, main, scan/*] | |
jobs: | |
trivy-image-Scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag bcgov/api-services-portal:trivy-scan | |
- name: Run Trivy Scan | |
uses: aquasecurity/trivy-action@master | |
with: | |
image-ref: 'bcgov/api-services-portal:trivy-scan' | |
format: 'template' | |
exit-code: '0' | |
ignore-unfixed: true | |
vuln-type: 'os,library' | |
severity: 'CRITICAL,HIGH,MEDIUM' | |
template: '@/contrib/sarif.tpl' | |
output: 'trivy-results.sarif' | |
- name: Upload Trivy Scan Results | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
sarif_file: 'trivy-results.sarif' |