CODEX Merge pull request #18 from Krafman/codex/fix-try-except-block-… #5
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: SBOM upload | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| SBOM-upload: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Generate SBOM | |
| run: | | |
| curl -Lo $RUNNER_TEMP/sbom-tool https://github.com/microsoft/sbom-tool/releases/latest/download/sbom-tool-linux-x64 | |
| chmod +x $RUNNER_TEMP/sbom-tool | |
| $RUNNER_TEMP/sbom-tool generate -b . -bc . -pn ${{ github.repository }} -pv 1.0.0 -ps OwnerName -nsb https://sbom.mycompany.com -V Verbose | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: sbom | |
| path: _manifest/spdx_2.2 | |
| - name: SBOM upload | |
| uses: advanced-security/spdx-dependency-submission-action@5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e | |
| with: | |
| filePath: "_manifest/spdx_2.2/" |