-
Notifications
You must be signed in to change notification settings - Fork 5
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
Configure Git to use bearer token auth mechanism #684
Conversation
cmd/start/git.go
Outdated
) | ||
|
||
// gitCheckout encapsulates the steps required to perform a Git checkout | ||
type gitCheckout struct { |
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.
FYI: everything except this type and its methods is just moved from main.go
.
httpProxy string | ||
httpsProxy string | ||
noProxy string | ||
url string | ||
gitFullRef string | ||
sslVerify string |
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.
FYI: When refactoring I noticed that these two params are currently unused in the checkout so I removed them.
cmd/start/main.go
Outdated
[]string{"config", | ||
fmt.Sprintf("http.%s/info/lfs.extraHeader", opts.bitbucketURL), | ||
fmt.Sprintf("Authorization: Bearer %s", opts.bitbucketAccessToken), | ||
}, |
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.
Those two config settings are the real change here.
Defines if http.sslVerify should be set to `true` or `false` in the global | ||
Git config. | ||
type: string | ||
default: 'true' |
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.
As the params are not read anymore in the Go binary, we cut them here as well.
1544d5f
to
96bc7e6
Compare
Tekton prepares the creds to be used through basic auth, which fails when the Bitbucket server has basic auth disabled. Fixes #683
96bc7e6
to
7fe1271
Compare
Tekton prepares the creds to be used through basic auth, which fails when the Bitbucket server has basic auth disabled.
Fixes #683
Tasks:
docs/design
directory or not applicabledocs
directory or not applicablemake test
) or not applicable