-
Notifications
You must be signed in to change notification settings - Fork 42
buildx(install): use sigstore module to verify signature #929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/buildx/install.ts
Outdated
| const signedEntity = toSignedEntity(bundle, fs.readFileSync(binPath)); | ||
| const verifier = new Verifier(trustMaterial); | ||
| const signer = verifier.verify(signedEntity, { | ||
| subjectAlternativeName: /^https:\/\/github\.com\/docker\/(github-builder-experimental|github-builder)\/\.github\/workflows\/build\.yml.*$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regexp not supported like cosign:
actions-toolkit/src/sigstore/sigstore.ts
Line 147 in 22773fa
| '--certificate-identity-regexp', opts.certificateIdentityRegexp |
Opened sigstore/sigstore-js#1556
13330f9 to
01bd355
Compare
a27376c to
b90bb7b
Compare
__tests__/buildx/install.test.itg.ts
Outdated
| maybe('download', () => { | ||
| // prettier-ignore | ||
| test.each(['latest'])( | ||
| test.each(['v0.31.0-rc1'])( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove rc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes let me change that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
b90bb7b to
81e3c15
Compare
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
81e3c15 to
17e08b9
Compare
relates to docker/github-builder-experimental#74