diff --git a/lib/entry-points.js b/lib/entry-points.js index 7a81f669f..62b043f7b 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -163077,7 +163077,7 @@ async function run4(startedAt) { } } } catch (unwrappedError) { - const error3 = wrapError(unwrappedError); + const error3 = wrapApiConfigurationError(wrapError(unwrappedError)); core23.setFailed(error3.message); const statusReportBase2 = await createStatusReportBase( "init-post" /* InitPost */, diff --git a/src/init-action-post.ts b/src/init-action-post.ts index 37ab94f37..a2bba6d7a 100644 --- a/src/init-action-post.ts +++ b/src/init-action-post.ts @@ -12,7 +12,7 @@ import { getTemporaryDirectory, printDebugLogs, } from "./actions-util"; -import { getGitHubVersion } from "./api-client"; +import { getGitHubVersion, wrapApiConfigurationError } from "./api-client"; import { CachingKind } from "./caching-utils"; import { getCodeQL } from "./codeql"; import { type Config, getConfig } from "./config-utils"; @@ -108,7 +108,7 @@ async function run(startedAt: Date) { } } } catch (unwrappedError) { - const error = wrapError(unwrappedError); + const error = wrapApiConfigurationError(wrapError(unwrappedError)); core.setFailed(error.message); const statusReportBase = await createStatusReportBase(