-
Notifications
You must be signed in to change notification settings - Fork 204
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
base: main
Are you sure you want to change the base?
Bump @octokit/rest from 21.1.1 to 22.0.0 in /extensions/ql-vscode #4114
Conversation
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>
@@ -26,15 +25,15 @@ export async function submitVariantAnalysis( | |||
repository_owners: databases.repositoryOwners, | |||
}; | |||
|
|||
const response: OctokitResponse<VariantAnalysis> = await octokit.request( | |||
const response = await octokit.request( |
There was a problem hiding this comment.
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.
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
file data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Bumps @octokit/rest from 21.1.1 to 22.0.0.
Release notes
Sourced from
@octokit/rest
's releases.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...Most Recent Ignore Conditions Applied to This Pull Request
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)