Skip to content

Commit

Permalink
GitHub Fine-grained tokens not fully supported
Browse files Browse the repository at this point in the history
The new fine-grained personal access tokens (currently in beta) are not
working, as PyGithub does not provide a way to detect what access we
effectively have (oauth_scopes is set to None).
  • Loading branch information
dregad committed Sep 5, 2023
1 parent 216784f commit a17dc7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config_defaults.yml
Expand Up @@ -15,6 +15,7 @@ github:
# Generate at https://github.com/settings/tokens
# The token must have at least `public_repo` scope. Additionally,
# - `write:org` is required to run github_plugin_teams.py
# Note: Fine-grained tokens are currently not supported
token: null

# Global teams in mantisbt-plugins org that should have access to
Expand Down
2 changes: 1 addition & 1 deletion github_plugin_teams.py
Expand Up @@ -84,7 +84,7 @@ def main():
break
if not has_required_privilege:
print("""
ERROR: This script requires a Token with the 'write:org' scope.
ERROR: This script requires a Classic Token with the 'write:org' scope.
Please update the config.yml file and GitHub Token as appropriate
https://github.com/settings/tokens
Expand Down

0 comments on commit a17dc7c

Please sign in to comment.