fix version #4
This file contains hidden or 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: Generate and Sign SBOM | |
| on: | |
| push: | |
| branches: [main, add-sbom-workflow] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| env: | |
| COMPONENT_NAME: ${{ github.repository }} | |
| COMPONENT_VERSION: ${{ github.sha }} | |
| jobs: | |
| sbom: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Generate SBOM with Syft | |
| uses: anchore/sbom-action@v0.20.6 | |
| with: | |
| path: ./marketing/ | |
| format: cyclonedx-json | |
| artifact-name: ${{ env.COMPONENT_NAME }}.${{ env.COMPONENT_VERSION }}.sbom.cdx.json |