Remove isCCR

This commit is contained in:
Michael B. Gale
2026-02-24 10:33:23 +00:00
parent cb4e075f11
commit f59338d600
15 changed files with 20 additions and 124 deletions

View File

@@ -14,7 +14,6 @@ import { CachingKind } from "./caching-utils";
import * as codeql from "./codeql";
import { Config } from "./config-utils";
import * as defaults from "./defaults.json";
import { EnvVar } from "./environment";
import {
CodeQLDefaultVersionInfo,
Feature,
@@ -505,9 +504,3 @@ export function makeTestToken(length: number = 36) {
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
return chars.repeat(Math.ceil(length / chars.length)).slice(0, length);
}
/** Sets the environment variables needed for isCCR() to be `true`. */
export function mockCCR() {
process.env.GITHUB_EVENT_NAME = "dynamic";
process.env[EnvVar.ANALYSIS_KEY] = "dynamic/copilot-pull-request-reviewer";
}