Use getRequiredEnvParam()
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
This commit is contained in:
parent
3615d8ac45
commit
870dbaaebe
3 changed files with 5 additions and 5 deletions
4
lib/actions-util.js
generated
4
lib/actions-util.js
generated
|
|
@ -498,8 +498,8 @@ async function createStatusReportBase(actionName, status, actionStartedAt, cause
|
||||||
workflowStartedAt = actionStartedAt.toISOString();
|
workflowStartedAt = actionStartedAt.toISOString();
|
||||||
core.exportVariable(sharedEnv.CODEQL_WORKFLOW_STARTED_AT, workflowStartedAt);
|
core.exportVariable(sharedEnv.CODEQL_WORKFLOW_STARTED_AT, workflowStartedAt);
|
||||||
}
|
}
|
||||||
const runnerOs = process.env["RUNNER_OS"] || "";
|
const runnerOs = (0, util_1.getRequiredEnvParam)("RUNNER_OS");
|
||||||
const runnerArch = process.env["RUNNER_ARCH"] || "";
|
const runnerArch = (0, util_1.getRequiredEnvParam)("RUNNER_ARCH");
|
||||||
// If running locally then the GITHUB_ACTION_REF cannot be trusted as it may be for the previous action
|
// If running locally then the GITHUB_ACTION_REF cannot be trusted as it may be for the previous action
|
||||||
// See https://github.com/actions/runner/issues/803
|
// See https://github.com/actions/runner/issues/803
|
||||||
const actionRef = isRunningLocalAction()
|
const actionRef = isRunningLocalAction()
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -647,8 +647,8 @@ export async function createStatusReportBase(
|
||||||
workflowStartedAt
|
workflowStartedAt
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const runnerOs = process.env["RUNNER_OS"] || "";
|
const runnerOs = getRequiredEnvParam("RUNNER_OS");
|
||||||
const runnerArch = process.env["RUNNER_ARCH"] || "";
|
const runnerArch = getRequiredEnvParam("RUNNER_ARCH");
|
||||||
|
|
||||||
// If running locally then the GITHUB_ACTION_REF cannot be trusted as it may be for the previous action
|
// If running locally then the GITHUB_ACTION_REF cannot be trusted as it may be for the previous action
|
||||||
// See https://github.com/actions/runner/issues/803
|
// See https://github.com/actions/runner/issues/803
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue