Skip to content

Commit

Permalink
gha: Add trivy step (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Dec 7, 2019
1 parent f3df1c9 commit 4fdebfb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ jobs:
- run: docker images
- run: docker run --rm ${PKG_TAG} --version

- name: Scan image
run: |
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
-v ${HOME}/.cache:/root/.cache aquasec/trivy:latest --exit-code 1 ${PKG_TAG}
- name: Login to Registries
if: github.event_name != 'pull_request'
env:
Expand Down

0 comments on commit 4fdebfb

Please sign in to comment.