development version 26.0.1-SNAPSHOT #135
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 | |
on: push | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build an image from Dockerfile | |
run: | | |
docker build -f docker/docker-files/Dockerfile -t docker.io/gisaia/arlas-permissions-server:${{ github.sha }} . | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/trivy-action@master | |
with: | |
image-ref: 'docker.io/gisaia/arlas-permissions-server:${{ github.sha }}' | |
format: 'table' | |
exit-code: '1' | |
ignore-unfixed: false | |
vuln-type: 'os,library' | |
severity: 'CRITICAL,HIGH' | |
trivyignores: .github/workflows/.trivyignore |