-
Notifications
You must be signed in to change notification settings - Fork 558
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
Add Buildkite provider #2779
Add Buildkite provider #2779
Conversation
Inspired by https://github.com/buildkite/agent/blob/main/clicommand/oidc_request_token.go, this should replicate the logic used when calling 'buildkite-agent oidc request-token' Fixes sigstore#2778 Signed-off-by: Hayden Blauzvern <[email protected]>
717fcd3
to
88db6a7
Compare
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.
Awesome 🤩
pkg/providers/buildkite/buildkite.go
Outdated
l := logger.NewConsoleLogger(logger.NewTextPrinter(os.Stderr), os.Exit) | ||
l.SetLevel(logger.INFO) |
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.
Does this log anything? Perhaps have this package put the default log level in a global variable, so folks can change it if this is noisy?
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.
Good idea! There was an existing environment variable, I've plumbed that through to the logger.
Codecov Report
@@ Coverage Diff @@
## main #2779 +/- ##
=======================================
Coverage 29.54% 29.54%
=======================================
Files 151 151
Lines 9646 9646
=======================================
Hits 2850 2850
Misses 6357 6357
Partials 439 439
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I built a binary w/ this branch (specifically commit 88db6a7) and successfully tested it in a buildkite pipeline with |
Signed-off-by: Hayden Blauzvern <[email protected]>
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.
can you add a release note for when we release make this a highligth?
thanks
besides that lgtm
thanks for that
done |
* Add Buildkite provider Inspired by https://github.com/buildkite/agent/blob/main/clicommand/oidc_request_token.go, this should replicate the logic used when calling 'buildkite-agent oidc request-token' Fixes sigstore#2778 Signed-off-by: Hayden Blauzvern <[email protected]> * Support customizing log level based on env var Signed-off-by: Hayden Blauzvern <[email protected]> --------- Signed-off-by: Hayden Blauzvern <[email protected]>
Inspired by
https://github.com/buildkite/agent/blob/main/clicommand/oidc_request_token.go, this should replicate the logic used when calling
'buildkite-agent oidc request-token'
Fixes #2778
Summary
Release Note
Added provider for Buildkite CI. Identity tokens will be automatically fetched when signing on Buildkite.
Documentation