Skip to content

Commit

Permalink
trivy scanning fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
nmofonseca committed Jun 1, 2024
1 parent c21e0eb commit 023732a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,6 @@ jobs:
${{ steps.docker_meta.outputs.labels }}
```
edit-mode: replace

# Run CVE scanning with Trivy
- name: Run Trivy for all CVEs (non-blocking)
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ github.run_id }}
exit-code: 0
format: table

# Adding docker build, won't push if it's a PR
- name: Docker build
Expand All @@ -96,4 +88,13 @@ jobs:
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max


# Run CVE scanning with Trivy
- name: Run Trivy for all CVEs (non-blocking)
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ github.repository }}:${{ steps.docker_meta.outputs.tags }}
exit-code: 0
format: table

0 comments on commit 023732a

Please sign in to comment.