Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'main' into simon-engledew/lint-workspace
Simon Engledew committed Nov 26, 2020

Unverified

No user is associated with the committer email.
2 parents be09fb3 + 7d74882 commit 92df387
Showing 17 changed files with 89 additions and 42 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.json
@@ -49,8 +49,7 @@
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"func-style": "off",
"github/no-then": "off"
"func-style": "off"
}
}]
}
2 changes: 1 addition & 1 deletion lib/actions-util.js.map

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions lib/analyze-action.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/analyze-action.js.map

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

14 changes: 10 additions & 4 deletions lib/autobuild-action.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/autobuild-action.js.map

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

14 changes: 10 additions & 4 deletions lib/init-action.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/init-action.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/tracer-config.js
2 changes: 1 addition & 1 deletion lib/tracer-config.js.map
14 changes: 10 additions & 4 deletions lib/upload-sarif-action.js
2 changes: 1 addition & 1 deletion lib/upload-sarif-action.js.map
14 changes: 10 additions & 4 deletions src/analyze-action.ts
@@ -102,7 +102,13 @@ async function run() {
await sendStatusReport(startedAt, stats);
}

run().catch((e) => {
core.setFailed(`analyze action failed: ${e}`);
console.log(e);
});
async function runWrapper() {
try {
await run();
} catch (error) {
core.setFailed(`analyze action failed: ${error}`);
console.log(error);
}
}

void runWrapper();
14 changes: 10 additions & 4 deletions src/autobuild-action.ts
@@ -86,7 +86,13 @@ async function run() {
await sendCompletedStatusReport(startedAt, language ? [language] : []);
}

run().catch((e) => {
core.setFailed(`autobuild action failed. ${e}`);
console.log(e);
});
async function runWrapper() {
try {
await run();
} catch (error) {
core.setFailed(`autobuild action failed. ${error}`);
console.log(error);
}
}

void runWrapper();
14 changes: 10 additions & 4 deletions src/init-action.ts
@@ -220,7 +220,13 @@ async function run() {
await sendSuccessStatusReport(startedAt, config, toolsVersion);
}

run().catch((e) => {
core.setFailed(`init action failed: ${e}`);
console.log(e);
});
async function runWrapper() {
try {
await run();
} catch (error) {
core.setFailed(`init action failed: ${error}`);
console.log(error);
}
}

void runWrapper();
2 changes: 1 addition & 1 deletion src/tracer-config.ts
@@ -133,7 +133,7 @@ export function concatTracerConfigs(
for (const e of Object.entries(env)) {
const key = e[0];
const value = e[1];
const lineBuffer = new Buffer(`${key}=${value}\0`, "utf8");
const lineBuffer = Buffer.from(`${key}=${value}\0`, "utf8");
const sizeBuffer = Buffer.alloc(4);
sizeBuffer.writeInt32LE(lineBuffer.length, 0);
buffer = Buffer.concat([buffer, sizeBuffer, lineBuffer]);
14 changes: 10 additions & 4 deletions src/upload-sarif-action.ts
@@ -76,7 +76,13 @@ async function run() {
}
}

run().catch((e) => {
core.setFailed(`codeql/upload-sarif action failed: ${e}`);
console.log(e);
});
async function runWrapper() {
try {
await run();
} catch (error) {
core.setFailed(`codeql/upload-sarif action failed: ${error}`);
console.log(error);
}
}

void runWrapper();

0 comments on commit 92df387

Please sign in to comment.