Skip to content

Commit

Permalink
fix precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnrobinson committed Jan 17, 2022
1 parent 1ddf724 commit 8e00f2e
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,9 @@ jobs:
-t ${{ inputs.IMAGE_REGISTRY }}/${{ inputs.IMAGE }}:${{ env.GITHUB_SHA_SHORT }}
--output=type=image,push=true
${GITHUB_WORKSPACE}/${{ inputs.WORKDIR }}
trivy-scan:
needs: build
name: Trivy Scan
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Trivy Vulnerability Scan
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ inputs.IMAGE_REGISTRY }}/${{ inputs.IMAGE }}:${{ env.GITHUB_SHA_SHORT }}
format: table
exit-code: '1'
ignore-unfixed: true
vuln-type: os,library
severity: CRITICAL
push:
name: Docker Push
needs: [trivy-scan, build]
needs: build
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand Down

0 comments on commit 8e00f2e

Please sign in to comment.