Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Add trivy scanning to release workflows.
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Moore <[email protected]>
  • Loading branch information
mattmoor committed Apr 12, 2022
1 parent 4227c86 commit 14f24c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,19 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: distroless/actions/apko-snapshot@main
id: apko-snapshot
with:
config: .apko.yaml
base-tag: ghcr.io/${{ github.repository }}

- uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ steps.apko-snapshot.outputs.digest }}
format: 'table'
exit-code: '1'
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'

# Post to slack when things fail.
- if: ${{ failure() }}
uses: rtCamp/[email protected]
Expand Down

0 comments on commit 14f24c6

Please sign in to comment.