Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
chore: add vulnerability scanning (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjahnke authored Jun 21, 2021
1 parent 358f2df commit 81c1fdc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ jobs:
env:
IMAGE: ${{ steps.get_repo.outputs.IMAGE }}
BRANCH: ${{ steps.get_branch.outputs.BRANCH }}
- name: Run vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: '${{ steps.get_repo.outputs.IMAGE }}:${{ steps.get_branch.outputs.BRANCH }}'
format: 'table'
exit-code: '0'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL'
-
name: Push tagged image
run: |
Expand Down

0 comments on commit 81c1fdc

Please sign in to comment.