From 6f3e54a22a1800570eab0291b9325946e8f02288 Mon Sep 17 00:00:00 2001 From: Abolfazl Shahbazi Date: Wed, 28 Aug 2024 18:35:47 -0700 Subject: [PATCH] Always upload scan artifacts (#680) Signed-off-by: Abolfazl Shahbazi --- .github/workflows/manual-bom-scan.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/manual-bom-scan.yml b/.github/workflows/manual-bom-scan.yml index 418d41ef5..ebb13fb3a 100644 --- a/.github/workflows/manual-bom-scan.yml +++ b/.github/workflows/manual-bom-scan.yml @@ -59,6 +59,7 @@ jobs: - name: SBOM Scan Container uses: anchore/sbom-action@v0.17.1 + if: always() with: image: ${{ env.OPEA_IMAGE_REPO }}opea/${{ matrix.image }}:${{ inputs.tag }} output-file: ${{ matrix.image }}-sbom-scan.txt @@ -66,6 +67,7 @@ jobs: - name: Security Scan Container uses: aquasecurity/trivy-action@0.24.0 + if: always() with: image-ref: ${{ env.OPEA_IMAGE_REPO }}opea/${{ matrix.image }}:${{ inputs.tag }} output: ${{ matrix.image }}-trivy-scan.txt @@ -80,6 +82,7 @@ jobs: run: docker rmi -f ${OPEA_IMAGE_REPO}opea/${{ matrix.image }}:${{ inputs.tag }} - uses: actions/upload-artifact@v4.3.4 + if: always() with: name: ${{ matrix.image }}-scan path: ${{ matrix.image }}-*-scan.txt