Add signing of the builds

This commit is contained in:
2025-12-15 00:42:45 +00:00
parent 623cbbcae3
commit c0f5f0830d
3 changed files with 10 additions and 18 deletions
+1
View File
@@ -12,6 +12,7 @@ on:
- main
permissions:
id-token: write
contents: write
packages: write
deployments: write
+2 -13
View File
@@ -68,17 +68,10 @@ dockers_v2:
signs:
- cmd: cosign
env:
- COSIGN_PASSWORD={{ .Env.COSIGN_PASSWORD }}
certificate: "${artifact}.pem"
signature: "${artifact}.sigstore.json"
args:
- sign-blob
- "--key"
- "env://COSIGN_KEY"
- "--output-signature"
- "${signature}"
- "--output-certificate"
- "${certificate}"
- "--bundle=${signature}"
- "${artifact}"
- "--yes"
artifacts: checksum
@@ -86,13 +79,9 @@ signs:
docker_signs:
- cmd: cosign
env:
- COSIGN_PASSWORD={{ .Env.COSIGN_PASSWORD }}
artifacts: manifests
output: true
args:
- sign
- "--key"
- "env://COSIGN_KEY"
- "${artifact}@${digest}"
- "--yes"
+7 -5
View File
@@ -59,18 +59,20 @@ You can find the example of the Kubernetes manifest in the [example standalone d
#### Verifying Release Signatures
All release checksums and Docker images are signed with [cosign](https://github.com/sigstore/cosign). To verify:
All release checksums and Docker images are signed with [cosign](https://github.com/sigstore/cosign) using keyless signing. To verify:
```bash
# Verify checksum signature
cosign verify-blob \
--key https://raw.githubusercontent.com/lukaszraczylo/lukaszraczylo/main/cosign.pub \
--signature graphql-proxy-checksums.txt.sig \
graphql-proxy-checksums.txt
--certificate-identity-regexp "https://github.com/lukaszraczylo/graphql-monitoring-proxy/.*" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
--bundle "<checksums-file>.sigstore.json" \
<checksums-file>
# Verify Docker image
cosign verify \
--key https://raw.githubusercontent.com/lukaszraczylo/lukaszraczylo/main/cosign.pub \
--certificate-identity-regexp "https://github.com/lukaszraczylo/graphql-monitoring-proxy/.*" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
ghcr.io/lukaszraczylo/graphql-monitoring-proxy:latest
```