Upload SBOMs for specific release #1
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: Upload SBOMs for specific release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| release: | |
| description: 'Release version to scan' | |
| required: true | |
| default: '0.0.0-dev' | |
| jobs: | |
| scan_release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Init submodules | |
| run: git submodule update --init --recursive | |
| - name: Set up Cosign | |
| uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0 | |
| - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| with: | |
| python-version: 3.11 | |
| - name: Setup Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2 | |
| with: | |
| toolchain: stable | |
| - name: Run image | |
| uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0 | |
| with: | |
| poetry-version: 1.7.1 | |
| - name: Install CycloneDX CLI | |
| run: | | |
| curl -sSfL https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.30.0/cyclonedx-linux-x64 -o /usr/local/bin/cyclonedx | |
| chmod +x /usr/local/bin/cyclonedx | |
| - name: Install deps | |
| run: poetry install | |
| - name: Upload SBOMs for release | |
| id: scan | |
| run: poetry run python stack_scanner/main.py upload-sbom-release ${{ secrets.SECOBSERVE_API_TOKEN }} ${{ github.event.inputs.release }} |