Skip to content

Commit 7230948

Browse files
committed
feat: Add Cosign integration for signing checksums in release process
Signed-off-by: Eden Reich <[email protected]>
1 parent b740667 commit 7230948

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ jobs:
4949
- name: Install Flox
5050
uses: flox/install-flox-action@main
5151

52+
- name: Install Cosign
53+
uses: sigstore/[email protected]
54+
5255
- name: Check for existing releases
5356
id: check_releases
5457
env:

.releaserc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@
9898
"path": "dist/checksums.txt",
9999
"label": "SHA256 checksums",
100100
"name": "checksums.txt"
101+
},
102+
{
103+
"path": "dist/checksums.txt.sig",
104+
"label": "Cosign signature for checksums",
105+
"name": "checksums.txt.sig"
106+
},
107+
{
108+
"path": "dist/checksums.txt.pem",
109+
"label": "Cosign certificate for checksums",
110+
"name": "checksums.txt.pem"
101111
}
102112
],
103113
"addReleases": "bottom"

Taskfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ tasks:
123123
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X github.com/inference-gateway/cli/cmd.version={{.VERSION}} -X github.com/inference-gateway/cli/cmd.commit={{.COMMIT}} -X github.com/inference-gateway/cli/cmd.date={{.DATE}}" -o dist/{{.BINARY_NAME}}-linux-amd64 {{.MAIN_PACKAGE}}
124124
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-X github.com/inference-gateway/cli/cmd.version={{.VERSION}} -X github.com/inference-gateway/cli/cmd.commit={{.COMMIT}} -X github.com/inference-gateway/cli/cmd.date={{.DATE}}" -o dist/{{.BINARY_NAME}}-linux-arm64 {{.MAIN_PACKAGE}}
125125
- cd dist && sha256sum {{.BINARY_NAME}}-* > checksums.txt
126+
- cd dist && cosign sign-blob --yes --output-signature checksums.txt.sig --output-certificate checksums.txt.pem checksums.txt
126127

127128
clean:release:
128129
desc: Clean release artifacts

0 commit comments

Comments
 (0)