Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e8f7169

Browse filesBrowse files
Move database bundling to inside the try-catch
1 parent 6ce923c commit e8f7169
Copy full SHA for e8f7169

File tree

Expand file treeCollapse file tree

3 files changed

+12
-11
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+12
-11
lines changed

‎lib/database-upload.js

Copy file name to clipboardExpand all lines: lib/database-upload.js
+5-5Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/database-upload.js.map

Copy file name to clipboardExpand all lines: lib/database-upload.js.map
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/database-upload.ts

Copy file name to clipboardExpand all lines: src/database-upload.ts
+6-5Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ export async function uploadDatabases(
3636
const codeql = await getCodeQL(config.codeQLCmd);
3737

3838
for (const language of config.languages) {
39-
// Upload the database bundle.
40-
// Although we are uploading arbitrary file contents to the API, it's worth
41-
// noting that it's the API's job to validate that the contents is acceptable.
42-
// This API method is available to anyone with write access to the repo.
43-
const bundledDb = await bundleDb(config, language, codeql, language);
4439
try {
40+
// Upload the database bundle.
41+
// Although we are uploading arbitrary file contents to the API, it's worth
42+
// noting that it's the API's job to validate that the contents is acceptable.
43+
// This API method is available to anyone with write access to the repo.
44+
const bundledDb = await bundleDb(config, language, codeql, language);
45+
4546
await client.request(
4647
`POST https://uploads.github.com/repos/:owner/:repo/code-scanning/codeql/databases/:language?name=:name`,
4748
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.