A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
fix(ci): only upload Trivy SARIF when scan succeeds
dextmorgn73bb4a0e7aaa
diff --git a/.github/workflows/images.yml b/.github/workflows/images.ymlindex 0f079337..1cf2f07c 100644--- a/.github/workflows/images.yml+++ b/.github/workflows/images.yml@@ -69,6 +69,7 @@ jobs:sbom: true- name: Run Trivy vulnerability scanner+ id: trivyuses: aquasecurity/trivy-action@masterwith:image-ref: ghcr.io/${{ github.repository_owner }}/flowsint-app:${{ github.ref_name }}@@ -78,7 +79,7 @@ jobs:- name: Upload Trivy scan resultsuses: github/codeql-action/upload-sarif@v3- if: always()+ if: always() && steps.trivy.outcome == 'success'with:sarif_file: "trivy-frontend.sarif"@@ -142,6 +143,7 @@ jobs:sbom: true- name: Run Trivy vulnerability scanner+ id: trivyuses: aquasecurity/trivy-action@masterwith:image-ref: ghcr.io/${{ github.repository_owner }}/flowsint-api:${{ github.ref_name }}@@ -151,7 +153,7 @@ jobs:- name: Upload Trivy scan resultsuses: github/codeql-action/upload-sarif@v3- if: always()+ if: always() && steps.trivy.outcome == 'success'with:sarif_file: "trivy-backend.sarif"