Skip to content

Commit

Permalink
Polished configuration and removed debug step
Browse files Browse the repository at this point in the history
  • Loading branch information
andip1403 committed Nov 1, 2024
1 parent 1ff3faf commit 6ae27dd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/config/syft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# For studio-client Olugins you can skip the scanning process
# because Plugins are not supposed to introduce new dependencies.
# The dependencies in the lockfile are considered provided dependencies.
# The actual version is determined by the studio-client application.
exclude:
- "./studio-client/**/pnpm-lock.yaml"
13 changes: 7 additions & 6 deletions .github/workflows/createAndScanSBOM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,27 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# The SBOM action generates and SBOM with the given format and automatically
# attaches it to the release, if it was triggered in the context of a release event.
- name: Generate SBOM with Syft
uses: anchore/sbom-action@v0
with:
path: .
output-file: "${{ github.event.repository.name }}-sbom.cyclonedx.json"
format: "cyclonedx-json"
config: ".syft/config.yml"
config: ".github/workflows/config/syft.yml" # config to exclude pnpm-lock.yaml

# Scans the SBOM for vulnerabilities with Grype
- name: Scan SBOM with Grype
id: scan
uses: anchore/scan-action@v5
with:
fail-build: false
by-cve: true
cache-db: true
by-cve: true # Prefer using CVE ids over GHSA ids
cache-db: true # Minimize risk of hitting rate limits
sbom: "${{ github.event.repository.name }}-sbom.cyclonedx.json"

- name: Verify SARIF file
run: cat ${{ steps.scan.outputs.sarif }}

# Upload the scan results to GitHub Security tab
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down
12 changes: 0 additions & 12 deletions .syft/config.yml

This file was deleted.

0 comments on commit 6ae27dd

Please sign in to comment.