SBOM manual upload #8
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: Publish SBOM | |
on: | |
workflow_dispatch: # can be manually dispatched under GitHub's "Actions" tab | |
jobs: | |
sbom: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- name: Install Syft | |
uses: anchore/sbom-action/download-syft@v0 | |
- name: Generate SBOM with Syft from latest AMD64 image | |
run: syft scan registry:${{ vars.DOCKERHUB_REPO }}:latest --platform linux/amd64 --select-catalogers "+sbom-cataloger" --output spdx-json=docker.spdx.json | |
- name: Upload SBOM artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docker-sbom | |
path: docker.spdx.json | |
- name: Upload SBOM to GitHub dependency submission API | |
uses: advanced-security/[email protected] |