Restore inputs in runInActions

This commit is contained in:
Michael B. Gale
2026-10-19 19:44:39 +01:00
parent bdbdfba109
commit f4e96ed27f
7 changed files with 18 additions and 16 deletions

10
lib/entry-points.js generated
View File

@@ -171436,6 +171436,9 @@ var ACTION_DISPLAY_NAMES = {
["start-proxy-post" /* StartProxyPost */]: "start-proxy post-action",
["upload-sarif-post" /* UploadSarifPost */]: "upload-sarif post-action"
};
function isPostAction(name) {
return name.endsWith("-post");
}
function getDisplayActionName(actionName) {
const displayName = ACTION_DISPLAY_NAMES[actionName];
return displayName ?? actionName;
@@ -171777,6 +171780,9 @@ async function runInActions(action) {
env,
actions: actionsEnv
};
if (isPostAction(action.name)) {
restoreInputs(logger2);
}
getJobUUID(actionState);
await action.run(actionState);
} catch (error3) {
@@ -185917,7 +185923,6 @@ async function createDatabaseBundleCli(codeql, config, language) {
async function run2(action) {
const logger2 = action.logger;
try {
restoreInputs(logger2);
const gitHubVersion = await getGitHubVersion();
checkGitHubVersionInRange(gitHubVersion, logger2);
if (process.env["CODEQL_ACTION_INIT_HAS_RUN" /* INIT_ACTION_HAS_RUN */] === "true") {
@@ -187263,7 +187268,6 @@ async function run5(action) {
let dependencyCachingUsage;
try {
const jobStatus2 = getOptionalInput("job-status");
restoreInputs(logger2);
const tmpDir = getTemporaryDirectory();
config = await getConfig(tmpDir, logger2);
if (config === void 0) {
@@ -188432,7 +188436,6 @@ var core26 = __toESM(require_core());
async function run9(action) {
const logger2 = action.logger;
try {
restoreInputs(logger2);
const pid = core26.getState("proxy-process-pid");
if (pid) {
process.kill(Number(pid));
@@ -188589,7 +188592,6 @@ var core28 = __toESM(require_core());
async function run11(action) {
const logger2 = action.logger;
try {
restoreInputs(logger2);
const gitHubVersion = await getGitHubVersion();
checkGitHubVersionInRange(gitHubVersion, logger2);
if (process.env["CODEQL_ACTION_INIT_HAS_RUN" /* INIT_ACTION_HAS_RUN */] !== "true") {