Skip to content

Commit

Permalink
try-trivy-image-scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Nov 6, 2023
1 parent 3a7a869 commit 388d472
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/manual-deploy-unstable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ jobs:
dockerfile: Dockerfile
secrets: inherit

scan-image:
needs: build-unstable
runs-on: ubuntu-latest
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ needs.build-unstable.outputs.image }}
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'

deploy:
needs: build-unstable
runs-on: ubuntu-latest
Expand Down

0 comments on commit 388d472

Please sign in to comment.