mirror of
https://github.com/github/codeql-action
synced 2026-05-25 15:00:36 +03:00
Use getRequiredEnvParam()
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
This commit is contained in:
Generated
+2
-2
@@ -498,8 +498,8 @@ async function createStatusReportBase(actionName, status, actionStartedAt, cause
|
||||
workflowStartedAt = actionStartedAt.toISOString();
|
||||
core.exportVariable(sharedEnv.CODEQL_WORKFLOW_STARTED_AT, workflowStartedAt);
|
||||
}
|
||||
const runnerOs = process.env["RUNNER_OS"] || "";
|
||||
const runnerArch = process.env["RUNNER_ARCH"] || "";
|
||||
const runnerOs = (0, util_1.getRequiredEnvParam)("RUNNER_OS");
|
||||
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
|
||||
// See https://github.com/actions/runner/issues/803
|
||||
const actionRef = isRunningLocalAction()
|
||||
|
||||
File diff suppressed because one or more lines are too long
+2
-2
@@ -647,8 +647,8 @@ export async function createStatusReportBase(
|
||||
workflowStartedAt
|
||||
);
|
||||
}
|
||||
const runnerOs = process.env["RUNNER_OS"] || "";
|
||||
const runnerArch = process.env["RUNNER_ARCH"] || "";
|
||||
const runnerOs = getRequiredEnvParam("RUNNER_OS");
|
||||
const runnerArch = getRequiredEnvParam("RUNNER_ARCH");
|
||||
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user