-
-
Save bramvdklinkenberg/6658e3255fd58d379cb55675a5868ad6 to your computer and use it in GitHub Desktop.
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
############################################### | |
## .github/workflows/vulnerability-scan.yaml ## | |
############################################### | |
name: "Vulnerability Scan" | |
on: [push] | |
jobs: | |
vulnerability_scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- run: docker build . -t testimage:${{ github.sha }} | |
name: docker build | |
- uses: Azure/container-scan@v0 | |
name: scan image for vulnerabilities | |
id: container_scan | |
# To fail the job when vulnerabilities are found, set to false | |
continue-on-error: true | |
with: | |
image-name: testimage:${{ github.sha }} | |
severity-threshold: MEDIUM | |
run-quality-checks: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment