Skip to content

Commit a2b5edb

Browse files
authored
added missing cosign.key (#427)
SBOM generation was failing because it missed a step to generate the private key needed for SBOM signing from Github secret.
1 parent 880c7dc commit a2b5edb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-test-deploy.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,15 @@ jobs:
118118
with:
119119
cosign-release: "v1.2.1"
120120

121+
- name: Get Cosign Key
122+
run: |
123+
echo $COSIGN_KEY | base64 -d > ./cosign.key
124+
env:
125+
COSIGN_KEY: ${{secrets.COSIGN_KEY}}
126+
121127
- name: Generate SBOM
122128
run: |
123-
COSIGN_PASSWORD=$COSIGNPASSWORD COSIGN_KEY=$COSIGN_KEY make sbom
129+
make sbom
124130
env:
125131
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
126132
COSIGN_KEY: ${{ secrets.COSIGN_KEY }}

0 commit comments

Comments
 (0)