-
Notifications
You must be signed in to change notification settings - Fork 220
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
Oauth scope (permissions) during github integration are excessive #2059
Comments
Upon investigation, may that truly is the minimal permission level -- wow https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps Any estimate for level of work to use personal access tokens? https://github.com/settings/personal-access-tokens/new https://docs.github.com/en/rest/orgs/personal-access-tokens?apiVersion=2022-11-28 Based on https://github.com/octokit/octokit.rb: It looks like its just a 1-for-1 replacement with the existing OAtuth token. So even just a user field to "update" token might work, but it would be even better -- given the security implications -- to simply prompt -- "Personal Access Token" or "Oauth" (understand its not so simple in implementation, especially user facing. |
Thanks for the feature request! This is definitely a possibility we could look into—we'd need to integrate Github Apps to allow for more fine grained access so that would require some work on that end. |
I am testing github integration for several Autolab courses. Autolab is latest -- v2.12.0.
Docs claim a minimal set of permissions:
https://docs.autolabproject.com/features/git-submission/
But when I attempt to connect my git account with Oauth I am presented with an authorization request which looks like:
Is this the intended "minimum set of permissions" to pull the tgz -- Read/Write/Manage looks like administrator scope at my organization level, *.*
I tested with a newly created non associated GitHub account just in case there was weirdness with the Oauth app and requesting user being in the same organization. Same result.
What permissions should this be requesting? Is there some flag or configuration I need to change to achieve a minimal permission request? Is there something I need to change about the GitHub app itself?
The text was updated successfully, but these errors were encountered: