Skip to content

Commit 5ebda31

Browse files
authored
fix signing process (#616)
* fix signing process * fix reviews
1 parent ef1a07d commit 5ebda31

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.goreleaser.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,15 @@ signs:
4040
- cmd: cosign
4141
env:
4242
- COSIGN_EXPERIMENTAL=1
43-
certificate: '${artifact}.pem'
4443
args:
4544
- sign-blob
46-
- --output-certificate=${certificate}
47-
- --output-signature=${signature}
45+
- --bundle=${artifact}.bundle
4846
- ${artifact}
4947
- --yes
5048
artifacts: archive
5149
output: true
5250

51+
5352
archives:
5453
- id: sbomqs
5554
name_template: >-

docs/getting-started.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,16 @@ Download signature and certificate fom release:
6767
- `sbomqs-linux-amd64.pem`
6868

6969
```bash
70+
export VERSION=2.0.3
71+
72+
curl -LO https://github.com/interlynk-io/sbomqs/releases/download/$VERSION/sbomqs_$VERSION_Linux_x86_64.tar.gz
73+
curl -LO https://github.com/interlynk-io/sbomqs/releases/download/$VERSION/sbomqs_$VERSION_Linux_x86_64.tar.gz.bundle
74+
7075
cosign verify-blob \
71-
--certificate sbomqs-linux-amd64.pem \
72-
--signature sbomqs-linux-amd64.sig \
73-
sbomqs-linux-amd64
76+
--bundle sbomqs_$VERSION_Linux_x86_64.tar.gz.bundle \
77+
--certificate-identity-regexp='^https://github.com/interlynk-io/sbomqs/\.github/workflows/release\.yml@refs/tags/.*$' \
78+
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
79+
sbomqs_$VERSION_Linux_x86_64.tar.gz
7480
```
7581

7682
### Linux

0 commit comments

Comments
 (0)