A GitHub token is a credential that authenticates a person, service, or automation to GitHub. Unlike a username and password, a token is often tied to a specific type, scope, and permission set, which controls what it can read, write, or administer. Some tokens are short-lived, while others persist until revoked.
In cyber security, tokens matter because they can act like passwords for repository access, API calls, and CI/CD automation. If a token is stolen, reused, or over-privileged, an attacker may be able to clone private code, modify workflows, hunt for secrets, or move into connected systems. Defenders reduce risk with least privilege, expiration, rotation, secret scanning, and rapid revocation when exposure is suspected.


