mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
re-add cosign signing checksums file (#2572)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
377538e4a6
commit
6ae5b2904d
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -94,6 +94,8 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
|
# required for goreleaser signs section with cosign
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@ -259,3 +259,16 @@ sboms:
|
|||||||
- "$artifact"
|
- "$artifact"
|
||||||
- "--output"
|
- "--output"
|
||||||
- "json=$document"
|
- "json=$document"
|
||||||
|
|
||||||
|
signs:
|
||||||
|
- cmd: .tool/cosign
|
||||||
|
signature: "${artifact}.sig"
|
||||||
|
certificate: "${artifact}.pem"
|
||||||
|
args:
|
||||||
|
- "sign-blob"
|
||||||
|
- "--oidc-issuer=https://token.actions.githubusercontent.com"
|
||||||
|
- "--output-certificate=${certificate}"
|
||||||
|
- "--output-signature=${signature}"
|
||||||
|
- "${artifact}"
|
||||||
|
- "--yes"
|
||||||
|
artifacts: checksum
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user