mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-05 22:49:25 +00:00
Add signing of the builds.
This commit is contained in:
@@ -11,6 +11,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
id-token: write
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
|
|||||||
@@ -87,3 +87,23 @@ homebrew_casks:
|
|||||||
system_command "/usr/bin/xattr",
|
system_command "/usr/bin/xattr",
|
||||||
args: ["-dr", "com.apple.quarantine", "#{staged_path}/semver-generator"]
|
args: ["-dr", "com.apple.quarantine", "#{staged_path}/semver-generator"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
signs:
|
||||||
|
- cmd: cosign
|
||||||
|
signature: "${artifact}.sigstore.json"
|
||||||
|
args:
|
||||||
|
- sign-blob
|
||||||
|
- "--bundle=${signature}"
|
||||||
|
- "${artifact}"
|
||||||
|
- "--yes"
|
||||||
|
artifacts: checksum
|
||||||
|
output: true
|
||||||
|
|
||||||
|
docker_signs:
|
||||||
|
- cmd: cosign
|
||||||
|
artifacts: manifests
|
||||||
|
output: true
|
||||||
|
args:
|
||||||
|
- sign
|
||||||
|
- "${artifact}@${digest}"
|
||||||
|
- "--yes"
|
||||||
|
|||||||
@@ -146,6 +146,25 @@ jobs:
|
|||||||
docker pull ghcr.io/lukaszraczylo/semver-generator:latest
|
docker pull ghcr.io/lukaszraczylo/semver-generator:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Verifying Release Signatures
|
||||||
|
|
||||||
|
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 \
|
||||||
|
--certificate-identity-regexp "https://github.com/lukaszraczylo/semver-generator/.*" \
|
||||||
|
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
|
||||||
|
--bundle "<checksums-file>.sigstore.json" \
|
||||||
|
<checksums-file>
|
||||||
|
|
||||||
|
# Verify Docker image
|
||||||
|
cosign verify \
|
||||||
|
--certificate-identity-regexp "https://github.com/lukaszraczylo/semver-generator/.*" \
|
||||||
|
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
|
||||||
|
ghcr.io/lukaszraczylo/semver-generator:latest
|
||||||
|
```
|
||||||
|
|
||||||
**Docker supported architectures:**
|
**Docker supported architectures:**
|
||||||
Linux/arm64, Linux/amd64
|
Linux/arm64, Linux/amd64
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user