Skip to content

Commit

Permalink
apply trivy scanning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhadfield committed Feb 18, 2023
1 parent aab07e9 commit b99cdc7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 48 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,36 @@ jobs:
run: echo "TAG=$(git describe --tags)" >> $GITHUB_ENV

-
name: build and push
name: build image
uses: docker/build-push-action@v4
with:
context: ./docker
file: ./docker/Dockerfile
build-args: TAG=${{ env.TAG }}
push: true
push: false
tags: |
${{ github.repository }}:latest
${{ github.repository }}:${{ env.TAG }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.TAG }}
- name: trivy image scan
uses: aquasecurity/[email protected]
with:
image-ref: ${{ github.repository }}:latest
exit-code: 0
severity: UNKNOWN,LOW,MEDIUM

-
name: push image
uses: docker/build-push-action@v4
with:
context: ./docker
file: ./docker/Dockerfile
build-args: TAG=${{ env.TAG }}
push: true
tags: |
${{ github.repository }}:latest
${{ github.repository }}:${{ env.TAG }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.TAG }}
46 changes: 0 additions & 46 deletions .github/workflows/trivy.yml

This file was deleted.

0 comments on commit b99cdc7

Please sign in to comment.