Add reminder to minimise code outside try/catch

This commit is contained in:
Henry Mercer
2026-01-22 11:31:17 +00:00
parent b715292b74
commit 14bd76753f
11 changed files with 33 additions and 0 deletions
+3
View File
@@ -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;