Skip to content

Commit f5fb4c4

Browse files
chore: fix checksum generation (argoproj#2481)
* chore: fix checksum generation and sign sbom Signed-off-by: Justin Marquis <[email protected]> * cosign public key for public record Signed-off-by: Justin Marquis <[email protected]> * remove pub key for cosign Signed-off-by: zachaller <[email protected]> Signed-off-by: Justin Marquis <[email protected]> Signed-off-by: zachaller <[email protected]> Co-authored-by: zachaller <[email protected]>
1 parent 84df738 commit f5fb4c4

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
- name: Generate release artifacts
117117
run: |
118118
make release-plugins
119+
make checksums
119120
make manifests IMAGE_TAG=${{ github.event.inputs.tag }}
120121
121122
- name: Generate SBOM (spdx)
@@ -183,8 +184,9 @@ jobs:
183184

184185
- name: Sign checksums and create public key for release assets
185186
run: |
186-
cosign sign-blob --key env://COSIGN_PRIVATE_KEY dist/argo-rollouts-checksums.txt > dist/argo-rollouts-checksums.sig
187+
cosign sign-blob --key env://COSIGN_PRIVATE_KEY ./dist/argo-rollouts-checksums.txt > ./dist/argo-rollouts-checksums.sig
187188
cosign public-key --key env://COSIGN_PRIVATE_KEY > ./dist/argo-rollouts-cosign.pub
189+
cosign sign-blob --key env://COSIGN_PRIVATE_KEY /tmp/sbom.tar.gz > /tmp/sbom.tar.gz.sig
188190
# Displays the public key to share.
189191
cosign public-key --key env://COSIGN_PRIVATE_KEY
190192
env:
@@ -216,5 +218,6 @@ jobs:
216218
manifests/notifications-install.yaml
217219
docs/features/kustomize/rollout_cr_schema.json
218220
/tmp/sbom.tar.gz
221+
/tmp/sbom.tar.gz.sig
219222
env:
220223
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,7 @@ release: release-precheck precheckin image plugin-image release-plugins
275275
trivy:
276276
@trivy fs --clear-cache
277277
@trivy fs .
278+
279+
.PHONY: checksums
280+
checksums:
281+
shasum -a 256 ./dist/kubectl-argo-rollouts-* | awk -F './dist/' '{print $$1 $$2}' > ./dist/argo-rollouts-checksums.txt

hack/build-release-plugins.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,3 @@ done
1717

1818
docker rm -v ${container_id}
1919
rm -f ${rollout_iid_file}
20-
21-
cd ${SRCROOT}/dist/
22-
shasum -a 256 kubectl-argo-rollouts-* > argo-rollouts-checksums.txt

0 commit comments

Comments
 (0)