Skip to content

Commit

Permalink
Showing 6 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/database-upload.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/database-upload.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/database-upload.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/database-upload.test.js.map
2 changes: 1 addition & 1 deletion src/database-upload.test.ts
@@ -99,7 +99,7 @@ function mockHttpRequests(

if (databaseUploadStatusCode !== undefined) {
const databaseUploadSpy = requestSpy.withArgs(
"PUT /repos/:owner/:repo/code-scanning/codeql/databases/javascript"
"PUT /repos/:owner/:repo/code-scanning/codeql/databases/:language"
);
if (databaseUploadStatusCode < 300) {
databaseUploadSpy.resolves(undefined);
3 changes: 2 additions & 1 deletion src/database-upload.ts
@@ -63,10 +63,11 @@ export async function uploadDatabases(
const payload = fs.readFileSync(databaseBundlePath);
try {
await client.request(
`PUT /repos/:owner/:repo/code-scanning/codeql/databases/${language}`,
`PUT /repos/:owner/:repo/code-scanning/codeql/databases/:language`,
{
owner: repositoryNwo.owner,
repo: repositoryNwo.repo,
language,
data: payload,
}
);

0 comments on commit 96edcdf

Please sign in to comment.