Merge pull request #821 from franpog859/franpog859/enhance-cluster-se… #92
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: 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 | |
env: | |
COSIGN_KEY: ${{ secrets.COSIGN_KEY }} | |
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} | |
run: | | |
mkdir -p sbom && chmod 777 sbom | |
echo $COSIGN_KEY | base64 -d > cosign.key | |
make sign-sbom | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: sbom | |
path: sbom/ | |
- name: SBOM upload | |
uses: advanced-security/spdx-dependency-submission-action@v0.1.1 | |
with: | |
filePath: sbom/spdx.json |