Repositories Are Excluded From Syncs When Using Multiple Personal Access Tokens
Issue
While setting up my connector, I added multiple personal access tokens. However, following successful syncs, multiple repositories are missing from my destination.
Environment
Connector: GitHub
Resolution
If your organization enforces SAML single sign-on (SSO), ensure all personal access tokens you provided in your connector's setup form are authorized for use within your organization. For more information, see GitHub's Authorizing a personal access token for use with SAML single sign-on documentation.
If your organization doesn't enforce SAML SSO, contact our support team.
Cause
This issue may occur when your organization enforces SAML SSO, but one or more of the personal access tokens you provided in your connector's setup form are not authorized for your organization. When this happens, we encounter the following error when we query GitHub's API for the affected repositories:
Resource protected by organization SAML enforcement. You must grant your Personal Access Token access to an organization within this enterprise.