mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Sign all artifacts with cosign and gpg (#1065)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
parent
36879aa86b
commit
ae22c28289
@ -208,10 +208,16 @@ checksum:
|
||||
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
|
||||
|
||||
signs:
|
||||
- artifacts: checksum
|
||||
- artifacts: all
|
||||
id: cosign
|
||||
cmd: cosign
|
||||
certificate: "${artifact}.pem"
|
||||
args: [ "sign-blob", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output-certificate=${certificate}", "--output-signature=${signature}", "${artifact}", "--yes" ]
|
||||
- artifacts: all
|
||||
signature: "${artifact}.gpgsig"
|
||||
id: gpg
|
||||
cmd: gpg
|
||||
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}" ]
|
||||
|
||||
docker_signs:
|
||||
- artifacts: all
|
||||
|
Loading…
Reference in New Issue
Block a user