Skip to content

Commit 28f5319

Browse files
committed
refactor: update release process to remove COSIGN_PRIVATE_KEY and add certificate output
1 parent 83b5044 commit 28f5319

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,3 @@ jobs:
5353
args: release --clean
5454
env:
5555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
COSIGN_PRIVATE_KEY: ${{secrets.COSIGN_PRIVATE_KEY}}
57-
COSIGN_PASSWORD: ${{secrets.COSIGN_KEY_PASSWORD}}

.goreleaser.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ changelog:
102102
sboms:
103103
- artifacts: archive
104104

105-
# sign checksums/archives using Cosign
106105
signs:
107106
- artifacts: checksum
108107
cmd: cosign
108+
certificate: "${artifact}.pem"
109109
args:
110110
- "sign-blob"
111-
- "--key=env://COSIGN_PRIVATE_KEY"
111+
- "--output-certificate=${certificate}"
112112
- "--output-signature=${signature}"
113113
- "--yes"
114114
- "${artifact}"
@@ -119,6 +119,5 @@ docker_signs:
119119
cmd: cosign
120120
args:
121121
- "sign"
122-
- "--key=env://COSIGN_PRIVATE_KEY"
123122
- "--yes"
124-
- "${artifact}"
123+
- "${artifact}"

0 commit comments

Comments
 (0)