api – The GitHub Blog https://github.blog Updates, ideas, and inspiration from GitHub to help developers build and design software. Thu, 01 Apr 2021 20:48:29 +0000 en-US hourly 1 https://wordpress.org/?v=5.7 https://github.blog/wp-content/uploads/2019/01/cropped-github-favicon-512.png?fit=32%2C32 api – The GitHub Blog https://github.blog 32 32 153214340 Authentication token format updates are generally available https://github.blog/changelog/2021-03-31-authentication-token-format-updates-are-generally-available Wed, 31 Mar 2021 22:22:03 +0000 https://github.blog/changelog/2021-03-31-authentication-token-format-updates-are-generally-available As we announced previously, the format of GitHub authentication tokens has changed. The following token types are affected:

If you use any of these tokens, we encourage you to reset them now. This will give you additional security benefits and allow Secret Scanning to detect the tokens.

Notably, the token formats now include the following updates:

  • The character set changed from [a-f0-9] to [A-Za-z0-9_]
  • The format now includes a prefix for each token type:
    • ghp_ for Personal Access Tokens
    • gho_ for OAuth Access tokens
    • ghu_ for GitHub App user-to-server tokens
    • ghs_ for GitHub App server-to-server tokens
    • ghr_ for GitHub App refresh tokens

The length of our tokens is remaining the same for now. However, GitHub tokens will likely increase in length in future updates, so integrators should plan to support tokens up to 255 characters after June 1, 2021.

]]>
57117
Compare REST API now supports pagination https://github.blog/changelog/2021-03-22-compare-rest-api-now-supports-pagination Tue, 23 Mar 2021 02:49:54 +0000 https://github.blog/changelog/2021-03-22-compare-rest-api-now-supports-pagination The "Compare two commits" REST API, which returns a list of commits reachable from one commit (or branch) but not reachable from another, now supports pagination. It can also now return the results for comparisons over 250 commits.

To learn more, see the compare two commits API reference or the guide for using pagination.

]]>
56979
GitHub Discussions GraphQL API public beta https://github.blog/changelog/2021-02-23-github-discussions-graphql-api-public-beta Tue, 23 Feb 2021 18:21:40 +0000 https://github.blog/changelog/2021-02-23-github-discussions-graphql-api-public-beta The GitHub Discussions GraphQL API public beta is now available. Get started with the GitHub Discussions API.

For questions or feedback, visit GitHub Discussions feedback.

]]>
56364