Grant repository access to a service account
A service account's role alone does not give its keys access to a repository. The organization owner making the grant needs the corresponding GitHub repository access.

Choose the repository and access#
Open Settings → API tokens → Service accounts. Find the account, choose a Grant repository, then select Read or Read and request reviews under Access. Select Grant.
Check the repository and access in the account's grants. Individual keys may further restrict the repositories or permissions they use.