mirror of
https://github.com/github/codeql-action.git
synced 2026-05-23 22:39:01 +00:00
Move isInTestMode to environment.ts
This commit is contained in:
Generated
+5
-3
@@ -147626,6 +147626,11 @@ var semver = __toESM(require_semver2());
|
||||
var maximumVersion = "3.21";
|
||||
var minimumVersion = "3.16";
|
||||
|
||||
// src/environment.ts
|
||||
function isInTestMode() {
|
||||
return process.env["CODEQL_ACTION_TEST_MODE" /* TEST_MODE */] === "true";
|
||||
}
|
||||
|
||||
// src/json/index.ts
|
||||
function parseString(data) {
|
||||
return JSON.parse(data);
|
||||
@@ -148054,9 +148059,6 @@ async function delay(milliseconds, opts) {
|
||||
function isGoodVersion(versionSpec) {
|
||||
return !BROKEN_VERSIONS.includes(versionSpec);
|
||||
}
|
||||
function isInTestMode() {
|
||||
return process.env["CODEQL_ACTION_TEST_MODE" /* TEST_MODE */] === "true";
|
||||
}
|
||||
function shouldSkipSarifUpload() {
|
||||
return isInTestMode() || process.env["CODEQL_ACTION_SKIP_SARIF_UPLOAD" /* SKIP_SARIF_UPLOAD */] === "true";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user