Skip to content

Commit 2efff80

Browse files
committed
Fix not being able to run variant analyses
The `controllerRepo` parameter was being encoded/escaped by Octokit, resulting in a URL like `repos/dsp-testing%2Fqc-controller/code-scanning/codeql/queries` rather than `repos/dsp-testing/qc-controller/code-scanning/codeql/queries`. This switches it to use the ID instead, since we already have the ID and do not have access to the owner and repo separately anymore.
1 parent 110d930 commit 2efff80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/ql-vscode/src/remote-queries/run-remote-query.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ async function runRemoteQueriesApiRequest(
361361
try {
362362
const octokit = await credentials.getOctokit();
363363
const response: OctokitResponse<QueriesResponse, number> = await octokit.request(
364-
'POST /repos/:controllerRepo/code-scanning/codeql/queries',
364+
'POST /repositories/:controllerRepoId/code-scanning/codeql/queries',
365365
{
366-
controllerRepo: controllerRepo.fullName,
366+
controllerRepoId: controllerRepo.id,
367367
data
368368
}
369369
);

0 commit comments

Comments
 (0)