container config updates (#820) #51
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 | |
strategy: | |
matrix: | |
image: ['wis2box-management', 'wis2box-mqtt-metrics-collector', 'wis2box-broker'] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build docker image ${{ matrix.image }} | |
run: | | |
docker build -t ${{ matrix.image }}:test ${{ matrix.image }} | |
- name: Run Trivy vulnerability scanner on ${{ matrix.image }} | |
if: always() | |
uses: aquasecurity/[email protected] | |
env: | |
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | |
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1 | |
with: | |
image-ref: ${{ matrix.image }}:test | |
format: 'table' | |
exit-code: '1' | |
ignore-unfixed: true | |
vuln-type: 'os,library' | |
severity: 'CRITICAL,HIGH' |