-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I tried migrating to the github app using these permissions (as documented):
Repository permissions
- Administration: read and write
- Metadata: read
Organization permissions:
- Administration: read and write
- Members: read and write
and keep getting this error:
2025-08-02 18:55:41] INFO: User 'venkatamutyala' is not configured as organization owners. Will make them a normal member
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.12.11/x64/bin/gh-org-mgr", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/gh_org_mgr/manage.py", line 125, in main
org.sync_org_owners(dry=args.dry, force=args.force)
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/gh_org_mgr/_gh_org.py", line 329, in sync_org_owners
if self._is_user_authenticated_user(gh_user):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/gh_org_mgr/_gh_org.py", line 282, in _is_user_authenticated_user
if user.login == self.gh.get_user().login:
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/github/AuthenticatedUser.py", line 282, in login
self._completeIfNotSet(self._login)
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/github/GithubObject.py", line 543, in _completeIfNotSet
self._completeIfNeeded()
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/github/GithubObject.py", line 547, in _completeIfNeeded
self.__complete()
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/github/GithubObject.py", line 552, in __complete
headers, data = self._requester.requestJsonAndCheck("GET", self._url.value, headers=self.__completeHeaders)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/github/Requester.py", line 624, in requestJsonAndCheck
return self.__check(
^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/github/Requester.py", line 792, in __check
raise self.createException(status, responseHeaders, data)
github.GithubException.GithubException: Resource not accessible by integration: 403 {"message": "Resource not accessible by integration", "documentation_url": "https://docs.github.com/rest/users/users#get-the-authenticated-user", "status": "403"}
Here are screenshots of how i set it up:

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working