Skill 4.1.2
Implement and manage GitHub authentication, including GitHub Apps, GITHUB_TOKEN, and personal access tokens
Key Concepts
GITHUB_TOKEN is created for each job, limited to its repository and expires with the job. The permissions key narrows it. GitHub Apps have fine-grained permissions, are installed on selected repositories, and issue short-lived tokens, so they suit automation across repositories.
Personal access tokens act as a person. Fine-grained tokens are preferred over classic tokens because they limit repositories and permissions, but they are still tied to a user.