Skip to content

Commit

Permalink
fix: use scan only
Browse files Browse the repository at this point in the history
  • Loading branch information
ichisuke55 committed May 10, 2024
1 parent 1b7dfb3 commit 44d3b6c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,12 @@ jobs:
uses: aquasecurity/trivy-action@master
with:
image-ref: 'ghcr.io/${{ github.repository_owner }}/translate-bot:latest'
format: 'sarif'
exit-code: '1'
scan-type: 'image'
format: 'table'
exit-code: '0' # 0 is passes, 1 is failed when scanning result is true.
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
output: 'trivy-results.sarif'

- name: Upload Truvy scan results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

- name: Push image to ghcr
run: |
Expand Down

0 comments on commit 44d3b6c

Please sign in to comment.