add trivvy scan (#7) #2
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: Run Trivy vulnerability scanner | |
on: [ push ] | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build wis2box-management | |
run: | | |
docker build -t dim_eccodes_baseimage:test . | |
- name: Run Trivy vulnerability scanner on dim_eccodes_baseimage:test | |
if: always() | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: dim_eccodes_baseimage:test | |
format: 'table' | |
exit-code: '1' | |
ignore-unfixed: true | |
vuln-type: 'os,library' | |
severity: 'CRITICAL,HIGH' |