Remove fallback logic for GHES 2.22 when determining Action repository
This commit is contained in:
parent
39fe7aa8a1
commit
bc341c5dd1
6 changed files with 14 additions and 23 deletions
|
|
@ -9,6 +9,7 @@ import * as yaml from "js-yaml";
|
|||
import nock from "nock";
|
||||
import * as sinon from "sinon";
|
||||
|
||||
import * as actionsUtil from "./actions-util";
|
||||
import { GitHubApiDetails } from "./api-client";
|
||||
import * as codeql from "./codeql";
|
||||
import { AugmentationProperties, Config } from "./config-utils";
|
||||
|
|
@ -432,6 +433,8 @@ test("getCodeQLActionRepository", (t) => {
|
|||
const repoLocalRunner = codeql.getCodeQLActionRepository(logger);
|
||||
t.deepEqual(repoLocalRunner, "github/codeql-action");
|
||||
|
||||
// isRunningLocalAction() === false
|
||||
sinon.stub(actionsUtil, "isRunningLocalAction").returns(false);
|
||||
process.env["GITHUB_ACTION_REPOSITORY"] = "xxx/yyy";
|
||||
const repoEnv = codeql.getCodeQLActionRepository(logger);
|
||||
t.deepEqual(repoEnv, "xxx/yyy");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue