-
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
pr-creator does not successfully use GitHub app authentication: "BUG apps auth requested but empty org, please report this to the test-infra repo." #33829
Comments
/sig testing |
Yeah, I think that's coming from some generic code from prow for github client behavior, but we're not using app support for Kubernetes for this particular tool. |
@BenTheElder any pointers on how that support is supposed to be invoked would be helpful... I had a look through the code here and it's just not evident to me where there's a good point to inject the org (seems it could be added to a context, or the tokenGenerator could be invoked with it...) |
Kubernetes runs it with a user account, the jobs running it are in this repo under config/ |
fix issue #33829: allow pr-creator to work with GH app auth
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
What happened:
Using the
pr-creator
built from latest I ran (real names swapped out with fake):Note that the error occurred on the search for matching PR, even though in my case the repo is public; it was trying to auth as directed but ran into this.
What you expected to happen:
At least a dry run of a PR being created or updated (should work with
-confirm
of course too).How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
It looks to me like this almost works, and I would be willing to put together a PR if I could figure out how to connect the dots.
As near as I can tell, this bot got the flags/options for app auth for free when the prow github client library it uses got them; however compared to PATs and oauth2 there is an added need to generate an installation token, which requires looking up the installation based on the org; something must wire the org into the tokenGenerator, and in
pr-creator
's code nothing does (the client doesn't store the org or tokenGenerator, and the failing call togc.FindIssues
doesn't either). I think that's why we end up withBUG apps auth requested but empty org
.This issue is somewhat related to:
commenter
is not even equipped with the app flags yet)The text was updated successfully, but these errors were encountered: