mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Use wrapApiConfigurationError in init-action-post error handler
This commit is contained in:
2
lib/entry-points.js
generated
2
lib/entry-points.js
generated
@@ -163077,7 +163077,7 @@ async function run4(startedAt) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (unwrappedError) {
|
} catch (unwrappedError) {
|
||||||
const error3 = wrapError(unwrappedError);
|
const error3 = wrapApiConfigurationError(wrapError(unwrappedError));
|
||||||
core23.setFailed(error3.message);
|
core23.setFailed(error3.message);
|
||||||
const statusReportBase2 = await createStatusReportBase(
|
const statusReportBase2 = await createStatusReportBase(
|
||||||
"init-post" /* InitPost */,
|
"init-post" /* InitPost */,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
getTemporaryDirectory,
|
getTemporaryDirectory,
|
||||||
printDebugLogs,
|
printDebugLogs,
|
||||||
} from "./actions-util";
|
} from "./actions-util";
|
||||||
import { getGitHubVersion } from "./api-client";
|
import { getGitHubVersion, wrapApiConfigurationError } from "./api-client";
|
||||||
import { CachingKind } from "./caching-utils";
|
import { CachingKind } from "./caching-utils";
|
||||||
import { getCodeQL } from "./codeql";
|
import { getCodeQL } from "./codeql";
|
||||||
import { type Config, getConfig } from "./config-utils";
|
import { type Config, getConfig } from "./config-utils";
|
||||||
@@ -108,7 +108,7 @@ async function run(startedAt: Date) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (unwrappedError) {
|
} catch (unwrappedError) {
|
||||||
const error = wrapError(unwrappedError);
|
const error = wrapApiConfigurationError(wrapError(unwrappedError));
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|
||||||
const statusReportBase = await createStatusReportBase(
|
const statusReportBase = await createStatusReportBase(
|
||||||
|
|||||||
Reference in New Issue
Block a user