GitHub App vs personal access token for GitHub Branch Source: which and why?
IntermediateConceptMultibranch, organization folders & webhooks
Answer
Use a GitHub App credential. It authenticates as the app, not a person, so builds do not break when an employee leaves; permissions are fine-grained per repository; rate limits are higher (scale with repos, up to 15,000 requests/hour for Enterprise Cloud orgs vs 5,000 for a PAT) and short-lived installation tokens are generated per use. Configure it as a "GitHub App" credential with the App ID and private key (PKCS#8). A PAT is acceptable only for small setups.
More on Multibranch, organization folders & webhooks
How does a multibranch pipeline work?BeginnerWhat is branch indexing and what triggers it?BeginnerWhat are the discovery traits in the GitHub branch source?IntermediateWhat does the fork PR trust setting protect against?AdvancedWhat environment variables are set for PR builds?BeginnerWhat is an organization folder?Intermediate