1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

fix(workflow): add conditional checks for Docker image scanning and result upload (#13898)

This commit is contained in:
Michał Chęciński
2025-03-20 17:38:51 +01:00
committed by GitHub
parent e31ffd9b66
commit c999c19f07

View File

@@ -312,6 +312,7 @@ jobs:
cosign sign --yes ${images}
- name: Scan Docker image
if: ${{ needs.setup.outputs.has_secrets == 'true' }}
id: container-scan
uses: anchore/scan-action@869c549e657a088dc0441b08ce4fc0ecdac2bb65 # v5.3.0
with:
@@ -320,6 +321,7 @@ jobs:
output-format: sarif
- name: Upload Grype results to GitHub
if: ${{ needs.setup.outputs.has_secrets == 'true' }}
uses: github/codeql-action/upload-sarif@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
with:
sarif_file: ${{ steps.container-scan.outputs.sarif }}