Skip to content

Commit ffcbb4c

Browse files
committed
Move UPDATEJOB_PROXY constants to start-proxy.ts
1 parent 1479235 commit ffcbb4c

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

lib/start-proxy-action.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy-action.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ import { pki } from "node-forge";
77

88
import * as actionsUtil from "./actions-util";
99
import { getActionsLogger, Logger } from "./logging";
10-
import { Credential, getCredentials } from "./start-proxy";
10+
import {
11+
Credential,
12+
getCredentials,
13+
UPDATEJOB_PROXY,
14+
UPDATEJOB_PROXY_URL_PREFIX,
15+
UPDATEJOB_PROXY_VERSION,
16+
} from "./start-proxy";
1117
import * as util from "./util";
1218

13-
const UPDATEJOB_PROXY = "update-job-proxy";
14-
const UPDATEJOB_PROXY_VERSION = "v2.0.20250624110901";
15-
const UPDATEJOB_PROXY_URL_PREFIX =
16-
"https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.22.0/";
1719
const KEY_SIZE = 2048;
1820
const KEY_EXPIRY_YEARS = 2;
1921

src/start-proxy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { KnownLanguage } from "./languages";
44
import { Logger } from "./logging";
55
import { ConfigurationError, isDefined } from "./util";
66

7+
export const UPDATEJOB_PROXY = "update-job-proxy";
8+
export const UPDATEJOB_PROXY_VERSION = "v2.0.20250624110901";
9+
export const UPDATEJOB_PROXY_URL_PREFIX =
10+
"https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.22.0/";
11+
712
export type Credential = {
813
type: string;
914
host?: string;

0 commit comments

Comments
 (0)