Skip to content

Commit

Permalink
Replace azure container scan
Browse files Browse the repository at this point in the history
  • Loading branch information
tba76 committed Nov 8, 2024
1 parent fcefb86 commit 52c7e2b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/container-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ jobs:
- name: Build the Docker image
run: docker build . --tag altinn-notifications:${{github.sha}}

- uses: Azure/[email protected]
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-name: altinn-notifications:${{ github.sha }}
image-ref: 'altinn-notifications:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
env:
DOCKLE_HOST: "unix:///var/run/docker.sock"
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,aquasec/trivy-db,ghcr.io/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db,aquasec/trivy-java-db,ghcr.io/aquasecurity/trivy-java-db

0 comments on commit 52c7e2b

Please sign in to comment.