Skip to content

Bump @octokit/rest from 21.1.1 to 22.0.0 in /extensions/ql-vscode #4114

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 3 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 14, 2025

Bumps @octokit/rest from 21.1.1 to 22.0.0.

Release notes

Sourced from @​octokit/rest's releases.

v22.0.0

22.0.0 (2025-05-25)

Bug Fixes

  • deps: update octokit monorepo (major) (#504) (77530ab)

BREAKING CHANGES

  • deps: Drop support for NodeJS v18
  • deps: Remove deprecated Projects endpoints
  • deps: Remove deprecated Copilot usage metrics endpoints
Commits
  • 77530ab fix(deps): update octokit monorepo (major) (#504)
  • d07b719 build(deps): Bump vite from 6.2.5 to 6.3.4 (#509)
  • 61b76da build(deps-dev): Bump http-proxy-middleware from 2.0.7 to 2.0.9 (#505)
  • 1710669 chore(deps): update dependency undici to v6.21.2 [security] (#513)
  • 8ef1473 build(deps): Bump vite from 6.0.11 to 6.2.5 (#503)
  • 1e8306b build(deps): Bump webpack-dev-middleware and gatsby in /docs (#497)
  • 3db0595 build(deps): Bump send and express in /docs (#490)
  • 27f09dd build(deps-dev): Bump webpack from 5.93.0 to 5.98.0 in /docs (#494)
  • 005b147 chore(deps): update dependency prismjs to v1.30.0 [security] (#493)
  • 3517730 chore(deps): update dependency semantic-release-plugin-update-version-in-file...
  • See full diff in compare view

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
@octokit/rest [>= 20.a, < 21]

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 21.1.1 to 22.0.0.
- [Release notes](https://github.com/octokit/rest.js/releases)
- [Commits](octokit/rest.js@v21.1.1...v22.0.0)

---
updated-dependencies:
- dependency-name: "@octokit/rest"
  dependency-version: 22.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the Update dependencies Dependabot update PRs label Aug 14, 2025
@dependabot dependabot bot requested a review from a team as a code owner August 14, 2025 13:02
@dependabot dependabot bot added the Update dependencies Dependabot update PRs label Aug 14, 2025
@charisk charisk requested a review from a team as a code owner August 15, 2025 10:29
@@ -26,15 +25,15 @@ export async function submitVariantAnalysis(
repository_owners: databases.repositoryOwners,
};

const response: OctokitResponse<VariantAnalysis> = await octokit.request(
const response = await octokit.request(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're using the incorrect method of making the request, which is why this has stopped working. POST /repositories/:controllerRepoId/code-scanning/codeql/variant-analyses doesn't exist in the OpenAPI types (since it's listed as POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses), so we should instead be using the single argument variant of the request method. Something like:

  const response = await octokit.request<VariantAnalysis>({
    method: "POST",
    url: "/repositories/:controllerRepoId/code-scanning/codeql/variant-analyses",
    controllerRepoId,
    data,
  });

I haven't checked whether this actually works correctly, but it seems like that is cleaner and doesn't require us to cast an any to our custom type.

Comment on lines +28 to +33
const response = await octokit.request<VariantAnalysis>({
method: "POST",
url: "/repositories/:controllerRepoId/code-scanning/codeql/variant-analyses",
controllerRepoId,
data,
});

Check warning

Code scanning / CodeQL

File data in outbound network request Medium

Outbound network request depends on
file data
.
Copy link
Member

@koesie10 koesie10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants