v11.0 Test #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |