@octokit/core
7.0.8 · 30 Aug 2026MIT50.2M / weekRepositoryHomepagenpmAtom feed
4.2.4 is the newest release of 4.x.
In short
14 new7 fixed
Release note
Type Features
Add support for new "Get a Dependabot alert" API (
GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number})Add support for new "Update a Dependabot alert" API (
PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number})Add support for new "List Dependabot alerts for a repository" API (
GET /repos/{owner}/{repo}/dependabot/alerts)Add support for new "List organization secret" (
GET /organizations/{org}/codespaces/secrets) Codespaces APIAdd support for new "Get an organization public key" (
GET /organizations/{org}/codespaces/secrets/public-key) Codespaces APIAdd support for new "Get an organization secret" (
GET /organizations/{org}/codespaces/secrets/{secret_name}) Codespaces APIAdds support for new "Create or update an organization secret" (
PUT /organizations/{org}/codespaces/secrets/{secret_name}) Codespaces APIAdd support for new "Delete an organization secret" (
DELETE /organizations/{org}/codespaces/secrets/{secret_name}) Codespaces APIAdd support for new "List selected repositories for an organization secret" (
GET /organizations/{org}/codespaces/secrets/{secret_name}/repositories) Codespaces APIAdd support for new "Set selected repositories for an organization secret" (
PUT /organizations/{org}/codespaces/secrets/{secret_name}/repositories) Codespaces APIAdd support for new "Add selected repository to an organization secret" (
PUT /organizations/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}) Codespaces APIAdd support for new "Remove selected repository from an organization secret" (
DELETE /organizations/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}) Codespaces APIAdd support for
resolution_commentattribute returned on secret scanning alertsAdd support for new
scopeattribute returned by the "Get a diff of the dependencies between commits" (GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}) API
Type Fixes
GHEC-only routes removed. Use
@octokit/plugin-enterprise-cloudfor support.Tweak documentation for repo starring related APIs (
GET /repos/{owner}/{repo}/stargazers,GET /users/{username}/starredandGET /user/starred) to clarify whatAcceptheader to send to get information about when stars were createdTweak documentation for "Get community profile metrics" API (
GET /repos/{owner}/{repo}/community/profile) to clarify that it only works with public repos which are not forksDocument the
sizeattribute returned on repos across the APIDocument that APIs can return
422errors when an endpoint has been spammed with many requestsDocument
301status returned by labels-related APIs if the repo has been renamed or movedDocument
404 Not Foundstatus returned by labels-related APIs
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.