![]() ![]() For more information, see " Available scopes". A token with no assigned scopes can only access public information. To use your token to access repositories from the command line, select repo. Select the scopes you'd like to grant this token. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker. In the left sidebar, click Personal access tokens. In the left sidebar, click Developer settings. In the upper-right corner of any page, click your profile photo, then click Settings. For more information, see " About apps." Creating a personal access token To access resources on behalf of an organization, or for long-lived integrations, you should use a GitHub App. Personal access tokens are intended to access GitHub resources on behalf of yourself. Personal access token are an alternative to using passwords for authentication to GitHub Enterprise Server when using the GitHub API or the command line. If these options are not possible, consider using another service such as the 1Password CLI to store your token securely. For more information, see " Encrypted secrets." When using a personal access token in a script, consider storing your token as a secret and running your script through GitHub Actions. To access GitHub from the command line, consider using GitHub CLI or Git Credential Manager instead of creating a personal access token. Warning: Treat your access tokens like passwords.
0 Comments
Leave a Reply. |