Skip to content

[Snyk] Upgrade @octokit/plugin-rest-endpoint-methods from 10.0.0 to 16.0.0 #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Jun 21, 2025

snyk-top-banner

Snyk has created this PR to upgrade @octokit/plugin-rest-endpoint-methods from 10.0.0 to 16.0.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 36 versions ahead of your current version.

  • The recommended version was released a month ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Insecure Randomness
SNYK-JS-UNDICI-8641354
67 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-OCTOKITREQUESTERROR-8730854
67 Proof of Concept
low severity Missing Release of Memory after Effective Lifetime
SNYK-JS-UNDICI-10176064
67 Proof of Concept
low severity Information Exposure
SNYK-JS-UNDICI-5962466
67 No Known Exploit
low severity Permissive Cross-domain Policy with Untrusted Domains
SNYK-JS-UNDICI-6252336
67 No Known Exploit
low severity Improper Access Control
SNYK-JS-UNDICI-6564963
67 No Known Exploit
low severity Improper Authorization
SNYK-JS-UNDICI-6564964
67 No Known Exploit
Release notes
Package name: @octokit/plugin-rest-endpoint-methods
  • 16.0.0 - 2025-05-25

    16.0.0 (2025-05-25)

    Features

    • remove deprecated projects endpoints, remove deprecated copilot usage metric endpoints, add new billing.getGithubBillingUsageReportUser() and credentials.revoke() endpoint methods, private registry methods no longer in private beta, type update (#803) (4196f01)

    BREAKING CHANGES

    • remove deprecated projects v1 endpoints
    • remove deprecated copilot usage metrics endpoints
  • 15.0.0 - 2025-05-20

    15.0.0 (2025-05-20)

    Continuous Integration

    BREAKING CHANGES

    • Drop support for NodeJS v18

    • build: set minimal node version in build script to v20

    • ci: stop testing against NodeJS v18

  • 14.0.0 - 2025-04-10

    14.0.0 (2025-04-10)

    Features

    • add new organization campaign endpoints, remove deprecated endpoints (#797) (4c8a166)

    BREAKING CHANGES

    • remove deprecated copilot metrics endpoints
    • remove deprecated legacy projects endpoints
  • 13.5.0 - 2025-03-18

    13.5.0 (2025-03-18)

    Features

    • new /orgs/{org}/issue-types, /orgs/{org}/issue-types/{issue_type_id} enpoints (#792) (58d342e)
  • 13.4.0 - 2025-03-18

    13.4.0 (2025-03-18)

    Features

    • new /enterprises/{enterprise}/actions/hosted-runners, /orgs/{org}/actions/hosted-runners, /orgs/{org}/settings/network-configurations, /orgs/{org}/rulesets/{ruleset_id}/history,/repos/{owner}/{repo}/rulesets/{ruleset_id}/history endpoints (#791) (b3fe977)
  • 13.3.2-cjs.1 - 2025-02-26

    13.3.2-cjs.1 (2025-02-26)

    Important

    This is a special release to backport newer changes to CJS and address a ReDos vulnerability

    Bug Fixes

    • backport fixes and endpoints from v13.3.1 (de45eb1)
    • release: add prerelease flag (99baedc)

    Reverts

    • Revert "feat: package is now ESM (#716)" (f0e9b87)
    • Revert "fix: add main entry point (#719)" (8a45428)
    • Revert "fix(pkg): add a default fallback export (#733)" (8251b8e)
    • Revert "fix(pkg): correct path in default export fallback to point to the JS and not the types (#736)" (4aed459)
  • 13.3.1 - 2025-02-07

    13.3.1 (2025-02-07)

    Bug Fixes

    • deps: bump @ octokit/types - only changes to graphQL (#783) (519a1ab)
  • 13.3.0 - 2025-01-08

    13.3.0 (2025-01-08)

    Features

    • new action runner groups endpoints, new code scanning alerts autofix endpoints, new sub-issues endpoints, new private registries enpoints, new code security endpoints, various description updates (#777) (5e1ecd4)
  • 13.2.6 - 2024-10-03

    13.2.6 (2024-10-03)

    Bug Fixes

  • 13.2.5 - 2024-09-27

    13.2.5 (2024-09-27)

    Bug Fixes

    • typescript: bump octokit/types for types for request.request.signal (#771) (24f5176)
  • 13.2.4 - 2024-07-02
  • 13.2.2 - 2024-05-02
  • 13.2.1 - 2024-04-30
  • 13.2.0 - 2024-04-29
  • 13.1.1 - 2024-04-24
  • 13.1.0 - 2024-04-22
  • 13.0.1 - 2024-04-16
  • 13.0.0 - 2024-04-15
  • 12.2.2 - 2024-04-09
  • 12.2.1 - 2024-04-09
  • 12.2.0 - 2024-04-05
  • 12.1.0 - 2024-04-03
  • 12.0.0 - 2024-04-03
  • 11.0.1 - 2024-02-27
  • 11.0.0 - 2024-02-25
  • 10.4.1 - 2024-03-01
  • 10.4.0 - 2024-02-22
  • 10.3.0 - 2024-02-15
  • 10.2.0 - 2023-11-28
  • 10.1.5 - 2023-11-14
  • 10.1.4 - 2023-11-12
  • 10.1.3 - 2023-11-09
  • 10.1.2 - 2023-10-26
  • 10.1.1 - 2023-10-25
  • 10.1.0 - 2023-10-24
  • 10.0.1 - 2023-10-11
  • 10.0.0 - 2023-09-23
from @octokit/plugin-rest-endpoint-methods GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Upgrade @octokit/plugin-rest-endpoint-methods from v10.0.0 to v16.0.0 to adopt the latest REST endpoint methods, remove deprecated endpoints, and address multiple security vulnerabilities.

Bug Fixes:

  • Resolve multiple Snyk-reported vulnerabilities in undici and OctokitRequestError by updating the plugin dependency.

Enhancements:

  • Incorporate breaking changes that remove deprecated projects and Copilot metrics endpoints and add new billing and credential revocation methods.

….0.0

Snyk has created this PR to upgrade @octokit/plugin-rest-endpoint-methods from 10.0.0 to 16.0.0.

See this package in npm:
@octokit/plugin-rest-endpoint-methods

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/1dea72f1-7418-4449-b0b9-c8d4eb19cc09?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Jun 21, 2025

Reviewer's Guide

This PR bumps @octokit/plugin-rest-endpoint-methods from v10.0.0 to v16.0.0 by updating the package.json entry (and regenerating the lockfile), bringing in several new endpoint methods, removing deprecated ones, and resolving multiple security vulnerabilities.

Class diagram for updated Octokit REST endpoint methods plugin integration

classDiagram
    class Octokit {
      +core
      +pluginPaginateRest
      +pluginRestEndpointMethods
    }
    class PluginRestEndpointMethods {
      +billing
      +credentials
      +privateRegistry
      -projectsV1 (removed)
      -copilotUsageMetrics (removed)
      +getGithubBillingUsageReportUser()
      +revoke()
    }
    Octokit --> PluginRestEndpointMethods : uses
    PluginRestEndpointMethods <|-- Billing
    PluginRestEndpointMethods <|-- Credentials
    PluginRestEndpointMethods <|-- PrivateRegistry

    class Billing {
      +getGithubBillingUsageReportUser()
    }
    class Credentials {
      +revoke()
    }
    class PrivateRegistry {
      <<no longer private beta>>
    }

    %% Deprecated endpoints removed
    class ProjectsV1 {
      <<removed>>
    }
    class CopilotUsageMetrics {
      <<removed>>
    }
Loading

File-Level Changes

Change Details Files
Upgrade dependency version
  • Update @octokit/plugin-rest-endpoint-methods version spec in package.json
  • Regenerate lockfile to sync with new version
packages/github/package.json
Adopt new plugin v16 API changes
  • Remove deprecated projects and Copilot metrics endpoints
  • Add billing.getGithubBillingUsageReportUser() and credentials.revoke() methods
packages/github/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants