mirror of
https://github.com/github/codeql-action.git
synced 2026-04-30 02:40:12 +00:00
Add reminder to minimise code outside try/catch
This commit is contained in:
@@ -13,6 +13,9 @@ import { getActionsLogger } from "./logging";
|
||||
import { checkGitHubVersionInRange, getErrorMessage } from "./util";
|
||||
|
||||
async function runWrapper() {
|
||||
// To capture errors appropriately, keep as much code within the try-catch as
|
||||
// possible, and only use safe functions outside.
|
||||
|
||||
const logger = getActionsLogger();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user