Skip to content

v11.0 Test

v11.0 Test #6

name: create_and_scan_SBOM
on:
release:
types: [created]
jobs:
create-sbom:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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: |
# For studio-client plugins you can skip the scanning process
# because they are not supposed to introduce new dependencies.
# The dependencies in the lockfile are considered runtime dependencies.
# The actual version is determined by the studio-client application.
exclude:
- "./studio-client/**"
- name: Scan SBOM with Grype
id: scan
uses: anchore/scan-action@v5
with:
fail-build: false
sbom: "${{ github.event.repository.name }}-sbom.cyclonedx.json"
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}
category: "syft_and_grype"