Run vulnerability scan on pull request

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-09-10 17:11:35 +02:00
parent 714bdd6bc6
commit 9a7294274b
2 changed files with 33 additions and 4 deletions

View File

@@ -38,12 +38,11 @@ jobs:
run: npm ci
- name: Install Syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
uses: anchore/sbom-action/download-syft@v0
- name: Install Grype
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
curl -sSfL https://raw.githubusercontent.com/anchore/grype/v0.85.0/install.sh | sh -s -- -b /usr/local/bin
- name: Install Cosign
uses: sigstore/cosign-installer@v3
@@ -74,7 +73,7 @@ jobs:
- name: Generate SBOM for attestation
run: |
syft dir:. --output cyclonedx-json --source-name probod --source-version ${{ github.ref_name }} > sbom.json
syft dir:. --output cyclonedx-json --source-name probo --source-version ${{ github.ref_name }} > sbom.json
- name: Scan SBOM for vulnerabilities
run: |