Skip to content

GitHub App ID makes API fail if a string #119

@venkatamutyala

Description

@venkatamutyala

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:

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions