Skip to content

Commit 27d0658

Browse files
committed
build: sign and verify only with referrers API
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 2da5a1f commit 27d0658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
images.push(`${tag}@${digest}`);
167167
}
168168
}
169-
await exec.getExecOutput('cosign', ['-d', 'sign', '--yes', ...images], {
169+
await exec.getExecOutput('cosign', ['-d', 'sign', '--yes', '--registry-referrers-mode', 'oci-1-1', ...images], {
170170
ignoreReturnCode: true
171171
}).then(res => {
172172
if (res.stderr.length > 0 && res.exitCode != 0) {
@@ -187,7 +187,7 @@ jobs:
187187
for (const tag of tags) {
188188
for (const digest of digests) {
189189
await core.group(`Verifying ${tag}@${digest}`, async () => {
190-
await exec.getExecOutput('cosign', ['-d', 'verify', '--certificate-identity-regexp', `^https://github.com/docker/github-builder-experimental/.github/workflows/build.yml.*$`, '--certificate-oidc-issuer', 'https://token.actions.githubusercontent.com', `${tag}@${digest}`], {
190+
await exec.getExecOutput('cosign', ['-d', 'verify', '--experimental-oci11', '--certificate-identity-regexp', `^https://github.com/docker/github-builder-experimental/.github/workflows/build.yml.*$`, '--certificate-oidc-issuer', 'https://token.actions.githubusercontent.com', `${tag}@${digest}`], {
191191
ignoreReturnCode: true
192192
}).then(res => {
193193
if (res.stderr.length > 0 && res.exitCode != 0) {

0 commit comments

Comments
 (0)