Move Credential type

This commit is contained in:
Michael B. Gale
2026-02-09 17:32:48 +00:00
parent 310177a1fb
commit 93302bc63a
2 changed files with 11 additions and 9 deletions

View File

@@ -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.
*

8
src/start-proxy/types.ts Normal file
View File

@@ -0,0 +1,8 @@
export type Credential = {
type: string;
host?: string;
url?: string;
username?: string;
password?: string;
token?: string;
};