Skip to content

set image tag based on release #73

set image tag based on release

set image tag based on release #73

Workflow file for this run

name: Run Trivy vulnerability scanner
on:
push:
schedule:
- cron: '0 8 * * *' # runs daily at 8h UTC
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build wis2box-webapp
run: |
docker build -t wis2box-webapp:test .
- name: Run Trivy vulnerability scanner on wis2box-webapp
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: 'wis2box-webapp:test'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
ignorefile: '.trivyignore'