mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
release: use cosign sign-blob in non-interative mode (#2953)
This commit is contained in:
parent
0b6eeb3747
commit
93eb8f0694
2
.github/actions/build_cli/action.yml
vendored
2
.github/actions/build_cli/action.yml
vendored
@ -104,7 +104,7 @@ runs:
|
||||
run: |
|
||||
echo "$COSIGN_PUBLIC_KEY" > cosign.pub
|
||||
# Enabling experimental mode also publishes signature to Rekor
|
||||
COSIGN_EXPERIMENTAL=1 cosign sign-blob --key env://COSIGN_PRIVATE_KEY "${OUTPUT_PATH}" > "${OUTPUT_PATH}.sig"
|
||||
COSIGN_EXPERIMENTAL=1 cosign sign-blob --yes --key env://COSIGN_PRIVATE_KEY "${OUTPUT_PATH}" > "${OUTPUT_PATH}.sig"
|
||||
# Verify - As documentation & check
|
||||
# Local Signature (input: artifact, key, signature)
|
||||
cosign verify-blob --key cosign.pub --signature "${OUTPUT_PATH}.sig" "${OUTPUT_PATH}"
|
||||
|
2
.github/workflows/draft-release.yml
vendored
2
.github/workflows/draft-release.yml
vendored
@ -287,7 +287,7 @@ jobs:
|
||||
- name: Build signed SBOM
|
||||
run: |
|
||||
syft build/constellation-linux-amd64 --catalogers go-module --file constellation.spdx.sbom -o spdx-json
|
||||
cosign sign-blob --key env://COSIGN_PRIVATE_KEY constellation.spdx.sbom > constellation.spdx.sbom.sig
|
||||
cosign sign-blob --yes --key env://COSIGN_PRIVATE_KEY constellation.spdx.sbom > constellation.spdx.sbom.sig
|
||||
grype constellation.spdx.sbom --fail-on high --only-fixed --add-cpes-if-none
|
||||
env:
|
||||
COSIGN_EXPERIMENTAL: 1
|
||||
|
@ -69,7 +69,7 @@ This keypair could also be backed-up onto USB stick / SD card.
|
||||
# COSIGN_PRIVATE_KEY=
|
||||
# COSIGN_PUBLIC_KEY=
|
||||
go build constellation
|
||||
COSIGN_EXPERIMENTAL=1 cosign sign-blob --key env://COSIGN_PRIVATE_KEY constellation > constellation.sig
|
||||
COSIGN_EXPERIMENTAL=1 cosign sign-blob --yes --key env://COSIGN_PRIVATE_KEY constellation > constellation.sig
|
||||
# We provide: cosign.pub, constellation.sig, constellation
|
||||
echo "$COSIGN_PUBLIC_KEY" > cosign.pub
|
||||
cosign verify-blob --key cosign.pub --signature constellation.sig constellation
|
||||
@ -130,7 +130,7 @@ measurements:
|
||||
# Set these beforehand!
|
||||
# COSIGN_PASSWORD=
|
||||
# COSIGN_PRIVATE_KEY=
|
||||
COSIGN_EXPERIMENTAL=1 cosign sign-blob --key cosign.key measurements.yaml > measurements.yaml.sig
|
||||
COSIGN_EXPERIMENTAL=1 cosign sign-blob --yes --key cosign.key measurements.yaml > measurements.yaml.sig
|
||||
```
|
||||
|
||||
```mermaid
|
||||
|
Loading…
Reference in New Issue
Block a user