Skip to content

Recognize the write:org OAuth scope as satisfying read:org#2965

Merged
mislav merged 2 commits intotrunkfrom
writeorg-oauth-scope
Feb 17, 2021
Merged

Recognize the write:org OAuth scope as satisfying read:org#2965
mislav merged 2 commits intotrunkfrom
writeorg-oauth-scope

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Feb 15, 2021

If someone pastes a PAT with write:org scope, this avoids the error complaining that the token doesn't have read:org permissions. On GitHub, write:org implies read:org.

From #1941 (comment)

If someone pastes a PAT with `write:org` scope, this avoids the error
complaining that the token doesn't have `read:org` permissions. On
GitHub, `write:org` implies `read:org`.
@mislav mislav requested a review from a team February 15, 2021 16:57
Copy link
Contributor

@samcoe samcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me

@mislav mislav merged commit faa6981 into trunk Feb 17, 2021
@mislav mislav deleted the writeorg-oauth-scope branch February 17, 2021 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants