From 93302bc63aab2768da977fcc5411ae979f5f7ab3 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Mon, 9 Feb 2026 17:32:48 +0000 Subject: [PATCH] Move `Credential` type --- src/start-proxy.ts | 12 +++--------- src/start-proxy/types.ts | 8 ++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 src/start-proxy/types.ts diff --git a/src/start-proxy.ts b/src/start-proxy.ts index f592d076b..ac1b7f1ba 100644 --- a/src/start-proxy.ts +++ b/src/start-proxy.ts @@ -13,6 +13,7 @@ import { Config } from "./config-utils"; import * as defaults from "./defaults.json"; import { KnownLanguage } from "./languages"; import { Logger } from "./logging"; +import { Credential } from "./start-proxy/types"; import { ActionName, createStatusReportBase, @@ -23,6 +24,8 @@ import { import * as util from "./util"; import { ConfigurationError, getErrorMessage, isDefined } from "./util"; +export * from "./start-proxy/types"; + /** * Enumerates specific error types for which we have corresponding error messages that * are safe to include in status reports. @@ -161,15 +164,6 @@ export 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/"; -export type Credential = { - type: string; - host?: string; - url?: string; - username?: string; - password?: string; - token?: string; -}; - /* * Language aliases supported by the start-proxy Action. * diff --git a/src/start-proxy/types.ts b/src/start-proxy/types.ts new file mode 100644 index 000000000..0d4a2d97f --- /dev/null +++ b/src/start-proxy/types.ts @@ -0,0 +1,8 @@ +export type Credential = { + type: string; + host?: string; + url?: string; + username?: string; + password?: string; + token?: string; +};