Skip to content

Generate SBOM

Generate SBOM #11

Workflow file for this run

name: Generate SBOM
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: CycloneDX .NET Generate SBOM
uses: CycloneDX/gh-dotnet-generate-sbom@v1.0.1
with:
path: ./ch9_release/src/Tailwind.Traders.Web.sln
github-bearer-token: ${{ secrets.GITHUB_TOKEN }}
- name: Attest
uses: actions/attest-sbom@v1
with:
subject-path: ./ch9_release/src/
sbom-path: bom.xml
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
path: bom.xml