Move UPDATEJOB_PROXY constants to start-proxy.ts

This commit is contained in:
Michael B. Gale
2025-09-11 15:32:30 +01:00
parent 1479235f5d
commit ffcbb4c0c1
3 changed files with 15 additions and 8 deletions
+7 -5
View File
@@ -7,13 +7,15 @@ import { pki } from "node-forge";
import * as actionsUtil from "./actions-util";
import { getActionsLogger, Logger } from "./logging";
import { Credential, getCredentials } from "./start-proxy";
import {
Credential,
getCredentials,
UPDATEJOB_PROXY,
UPDATEJOB_PROXY_URL_PREFIX,
UPDATEJOB_PROXY_VERSION,
} from "./start-proxy";
import * as util from "./util";
const UPDATEJOB_PROXY = "update-job-proxy";
const UPDATEJOB_PROXY_VERSION = "v2.0.20250624110901";
const UPDATEJOB_PROXY_URL_PREFIX =
"https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.22.0/";
const KEY_SIZE = 2048;
const KEY_EXPIRY_YEARS = 2;
+5
View File
@@ -4,6 +4,11 @@ import { KnownLanguage } from "./languages";
import { Logger } from "./logging";
import { ConfigurationError, isDefined } from "./util";
export const UPDATEJOB_PROXY = "update-job-proxy";
export const UPDATEJOB_PROXY_VERSION = "v2.0.20250624110901";
export const UPDATEJOB_PROXY_URL_PREFIX =
"https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.22.0/";
export type Credential = {
type: string;
host?: string;