Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Comparison of GitHub Tokens and Keys

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

NameShort DescriptionScopePermissionProtocol
GitHub
SSH Key
A SSH public keyAll reposRead and WriteSSH
GitHub
Deploy Key
A SSH public keyAny repo
configures
the key
Read (optionally write)SSH
GitHub PATPersonal access tokenAny repo
configures
the PAT
Read and WriteHTTPS
Repository SecretRepo secret (SSH keys, PATs or anything) for
authenticating GitHub APIs
Single repoDependsDepends
Organization SecretOrg secret (SSH keys, PATs, or anything) for authenticating GitHub APIsAll repos
in the org
DependsDepends

Personal Access Tokens

How to create a Github read-only API token

Deploy Keys

Deploy Keys are SSH keys which access restricted to a specific repository only.

https://developer.github.com/v3/guides/managing-deploy-keys/#deploy-keys

https://docs.github.com/en/developers/overview/managing-deploy-keys#deploy-keys

References