mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 09:59:43 +00:00
Add RUNNER_ENVIRONMENT to ActionsEnvVars
This commit is contained in:
@@ -275,7 +275,7 @@ export const getFileType = async (filePath: string): Promise<string> => {
|
||||
};
|
||||
|
||||
export function isSelfHostedRunner(env: Env = getEnv()) {
|
||||
return env.getOptional("RUNNER_ENVIRONMENT") === "self-hosted";
|
||||
return env.getOptional(ActionsEnvVars.RUNNER_ENVIRONMENT) === "self-hosted";
|
||||
}
|
||||
|
||||
/** Determines whether the workflow trigger is `dynamic`. */
|
||||
|
||||
Reference in New Issue
Block a user