Skip to content

Commit 934c903

Browse files
committed
build: enforce github-actions provider for signing
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 2abd569 commit 934c903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
images.push(`${tag}@${digest}`);
168168
}
169169
}
170-
await exec.getExecOutput('cosign', ['-d', 'sign', '--yes', '--registry-referrers-mode', 'oci-1-1', ...images], {
170+
await exec.getExecOutput('cosign', ['-d', 'sign', '--yes', '--oidc-provider', 'github-actions', '--oidc-issuer', 'https://token.actions.githubusercontent.com', '--registry-referrers-mode', 'oci-1-1', ...images], {
171171
ignoreReturnCode: true
172172
}).then(res => {
173173
if (res.stderr.length > 0 && res.exitCode != 0) {

0 commit comments

Comments
 (0)