Skip to content

Commit

Permalink
chore: make trivy scan more resillient
Browse files Browse the repository at this point in the history
  • Loading branch information
eliecharra committed Nov 22, 2024
1 parent 60c3e7d commit 46dd0df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,15 @@ jobs:
echo "TARGET_TAG=${TARGET_TAG}" >> $GITHUB_ENV
- name: Run Trivy vulnerability scanner for ${{ matrix.target }} image
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.27.0
with:
image-ref: "ghcr.io/${{ github.repository }}:${{ matrix.versions.ansible }}${{ env.TARGET_TAG }}-${{ env.PLATFORM_PAIR }}"
format: "template"
template: "@/contrib/sarif.tpl"
output: "${{ matrix.target }}.sarif"
severity: "CRITICAL,HIGH"
env:
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db

- name: Upload ${{ matrix.target }} image scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
Expand Down

0 comments on commit 46dd0df

Please sign in to comment.