1. GitHub Docs
"About creating GitHub Apps." This document explicitly states
"GitHub Apps are the officially recommended way to integrate with GitHub because they offer much more granular permissions to access data... For CI/CD
you can use a GitHub App to run workflows." It contrasts this with OAuth Apps and PATs. (Source: GitHub
Inc.
Official Documentation
Developers > Apps > Building GitHub Apps > About building GitHub Apps).
2. GitHub Docs
"Choosing an authentication method." This guide recommends GitHub Apps for system-to-system interactions
such as CI/CD. It highlights that "GitHub Apps have granular permissions and use short-lived tokens
which reduces the risk of leaked credentials." (Source: GitHub
Inc.
Official Documentation
Developers > Apps > Building apps > Choosing an authentication method).
3. GitHub Docs
"Managing your personal access tokens." In the section on choosing the right token
the documentation advises
"For automations that will interact with repositories in an organization
you should use a GitHub App. GitHub Apps have more granular permissions and are not associated with a user account." (Source: GitHub
Inc.
Official Documentation
Authentication > Keeping your account and data secure > Managing your personal access tokens).