Skip to content

Commit

Permalink
update checks
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Apr 19, 2023
1 parent 3468266 commit 2e7e5b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ jobs:
- name: Checkout
uses: actions/[email protected]
- name: "Check if image exists"
id: imageCheck
run: |
docker manifest inspect tractusx/${{ matrix.image }}:sha-${{ needs.git-sha7.outputs.value }}
continue-on-error: true

- name: Run Trivy vulnerability scanner
if: success()
if: success() && steps.imageCheck.outcome != 'failure'
uses: aquasecurity/trivy-action@master
with:
image-ref: "tractusx/${{ matrix.image }}:sha-${{ needs.git-sha7.outputs.value }}"
Expand All @@ -90,7 +91,7 @@ jobs:
severity: "CRITICAL,HIGH"
timeout: "10m0s"
- name: Upload Trivy scan results to GitHub Security tab
if: always()
if: success() && steps.imageCheck.outcome != 'failure'
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results-${{ matrix.image }}.sarif"

0 comments on commit 2e7e5b0

Please sign in to comment.