-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Prow sub can work with GitHub app #24316
Conversation
/assign @alvaroaleman |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chaodaiG The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
@@ -107,6 +107,9 @@ func main() { | |||
if flagOptions.github.TokenPath != "" { | |||
tokens = append(tokens, flagOptions.github.TokenPath) | |||
} | |||
if flagOptions.github.AppPrivateKeyPath != "" { |
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.
This shouldnt be needed, it happens in the flagutil when you call GitHubClientWithLogFields
:
test-infra/prow/flagutil/github.go
Lines 272 to 274 in ef5dc9a
if err := secret.Add(o.AppPrivateKeyPath); err != nil { | |
return nil, fmt.Errorf("failed to add the the key from --app-private-key-path to secret agent: %w", err) | |
} |
Below is another check for flagOptions.github.TokenPath
, that one needs to also allow apps auth
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. right. that's strange then. I'll take another looks
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.
found it, fixing in #24317, and by the way removing duplicated logic in the PR
No description provided.