Skip to content

Commit 0c2dcce

Browse files
committed
mod: install cosign and sign wasm component
1 parent 4a43c55 commit 0c2dcce

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,14 @@ jobs:
5353

5454
- name: Run publish script
5555
run: bash scripts/publish.sh ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
56+
57+
- name: Install Cosign
58+
uses: sigstore/[email protected]
59+
60+
- name: Sign wasm component
61+
run: |
62+
image="ghcr.io/${{ github.actor }}/rust-wasi-hello:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}"
63+
cosign sign --yes --key env://COSIGN_PRIVATE_KEY $image
64+
env:
65+
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
66+
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}

0 commit comments

Comments
 (0)