From 7cd2203aedcd2f285dbcf4932bd085638cce545e Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Fri, 23 Oct 2026 12:59:14 +0100 Subject: [PATCH] Use `env.export` in `getCodeQLForCmd` --- lib/entry-points.js | 2 +- src/codeql.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/entry-points.js b/lib/entry-points.js index 86c7c220d..18873d650 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -177449,7 +177449,7 @@ Output was: ${extractorPath}` Alternatively, if you want to continue using CodeQL CLI version ${result.version}, you can replace 'github/codeql-action/*@v${getActionVersion().split(".")[0]}' by 'github/codeql-action/*@v${getActionVersion()}' in your code scanning workflow to continue using this version of the CodeQL Action.` ); - exportEnvVar("CODEQL_ACTION_SUPPRESS_DEPRECATED_SOON_WARNING" /* SUPPRESS_DEPRECATED_SOON_WARNING */, "true"); + env.export("CODEQL_ACTION_SUPPRESS_DEPRECATED_SOON_WARNING" /* SUPPRESS_DEPRECATED_SOON_WARNING */, "true"); } return codeql; } diff --git a/src/codeql.ts b/src/codeql.ts index 973ebafd2..641421a7d 100644 --- a/src/codeql.ts +++ b/src/codeql.ts @@ -18,7 +18,7 @@ import { CliError, wrapCliConfigurationError } from "./cli-errors"; import type { ActionConfig } from "./config/action-config"; import { appendExtraQueryExclusions, type Config } from "./config-utils"; import { DocUrl } from "./doc-url"; -import { EnvVar, getEnv, exportEnvVar, Env, ReadOnlyEnv } from "./environment"; +import { EnvVar, getEnv, Env, ReadOnlyEnv } from "./environment"; import { CodeQLDefaultVersionInfo, Feature, @@ -1076,7 +1076,7 @@ export async function getCodeQLForCmd( }' by 'github/codeql-action/*@v${getActionVersion()}' in your code scanning workflow to ` + "continue using this version of the CodeQL Action.", ); - exportEnvVar(EnvVar.SUPPRESS_DEPRECATED_SOON_WARNING, "true"); + env.export(EnvVar.SUPPRESS_DEPRECATED_SOON_WARNING, "true"); } return codeql; }