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:
@@ -42,6 +42,9 @@ interface InitPostStatusReport
|
||||
initActionPostHelper.DependencyCachingUsageReport {}
|
||||
|
||||
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();
|
||||
const startedAt = new Date();
|
||||
let config: Config | undefined;
|
||||
|
||||
Reference in New Issue
Block a user