Skip to content

Commit

Permalink
fix(github): fix Trivy scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Gągor committed Mar 16, 2021
1 parent c5ec036 commit 96af3fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ jobs:
docker run --name tgagor-centos-stream ghcr.io/tgagor/centos-stream true
docker export tgagor-centos-stream | docker import - ghcr.io/tgagor/centos-stream
docker tag ghcr.io/tgagor/centos-stream ghcr.io/tgagor/centos-stream:${GITHUB_REF##*/}
docker tag ghcr.io/tgagor/centos-stream ghcr.io/tgagor/centos-stream:${GITHUB_REF##*/}
docker push ghcr.io/tgagor/centos-stream
docker push ghcr.io/tgagor/centos-stream:${GITHUB_REF##*/}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'ghcr.io/tgagor/centos-stream:${GITHUB_REF##*/}'
image-ref: ghcr.io/tgagor/centos-stream
format: template
template: '@/contrib/sarif.tpl'
# don't fail
Expand Down

0 comments on commit 96af3fa

Please sign in to comment.