-
Notifications
You must be signed in to change notification settings - Fork 502
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
Refactor Auth to make GitHub Enterprise work #3425
base: main
Are you sure you want to change the base?
Conversation
Thanks for working on this. However, this PR seems to contain
It's much easier to review if such things are extracted into small PRs |
cbf6071
to
baeb270
Compare
6766a1d
to
9e49c17
Compare
Java 21 change was due to a rebase I guess. I'm trying to reduce the change set but changing the config is touching practically all files. Listing all the changes:Refactor configurationThe current configuration has forge specific configs: bitbucketCfg: BitbucketCfg,
bitbucketServerCfg: BitbucketServerCfg,
gitLabCfg: GitLabCfg,
azureReposCfg: AzureReposCfg, and some mandatory config for Github that are optional: githubApp: Option[GitHubApp], This makes impossible to handle auth without doing some In this change, instead of doing
Expand
|
@exoego Let me know if the overall plan sounds good and I can make multiple based on the above changes? |
@exoego Let me know if the general idea of this PR is good to you and I can do multiple PRs. |
cc @mzuehlke @alejandrohdezma |
I was trying to understand how is Scala-Steward working on Github.com and not working for Github Enterprise, and I found out that's because the user @scala-steward is used to authenticate, whereas in Github Enterprise there is no service account. So we have to use Github Apps instead and the authentication for Github Apps is only though JWT. No Basic Auth with token is allowed. So in essence, Scala-Steward does not work with Github Enterprise as of today. |
Hey @joan38 doesn't it work if you use the Scala GitHub Action? I'm quite sure it should work with GitHub enterprise |
@alejandrohdezma GitHub Actions are not enabled for our Enterprise instance |
oh, I see, then I guess it would be good to follow @exoego suggestion on splitting the changes done in this PR to smaller reviewable ones |
Sounds good, I just wanted to make sure I'm not doing this in void. |
I really like the idea. I started contributing some years ago with the same aim 😄 Breaking the CLI is always an unpleasant thing..... |
Thanks @mzuehlke |
Can this be closed ? |
Should I do a rebase? Or breaking the CLI is out of the question? |
If rebasing isn't a big effort, it would be easier to see what changes are left from these. |
Apology, this is a huge refactoring of the options to enforce the necessary options for each forge type.
We run scala-steward @ Netflix and we recently switched from Bitbucket to Github Enterprise. However Basic Auth is disabled in favor of JWT for all API calls. scala-steward currently does not support JWT only credentials. This PR switches all Github API calls to JWT.