Skip to content

Instantly share code, notes, and snippets.

@bramvdklinkenberg
Created October 20, 2022 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bramvdklinkenberg/6658e3255fd58d379cb55675a5868ad6 to your computer and use it in GitHub Desktop.
Save bramvdklinkenberg/6658e3255fd58d379cb55675a5868ad6 to your computer and use it in GitHub Desktop.
###############################################
## .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