Skip to content

Commit 93302bc

Browse files
committed
Move Credential type
1 parent 310177a commit 93302bc

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/start-proxy.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { Config } from "./config-utils";
1313
import * as defaults from "./defaults.json";
1414
import { KnownLanguage } from "./languages";
1515
import { Logger } from "./logging";
16+
import { Credential } from "./start-proxy/types";
1617
import {
1718
ActionName,
1819
createStatusReportBase,
@@ -23,6 +24,8 @@ import {
2324
import * as util from "./util";
2425
import { ConfigurationError, getErrorMessage, isDefined } from "./util";
2526

27+
export * from "./start-proxy/types";
28+
2629
/**
2730
* Enumerates specific error types for which we have corresponding error messages that
2831
* are safe to include in status reports.
@@ -161,15 +164,6 @@ export const UPDATEJOB_PROXY_VERSION = "v2.0.20250624110901";
161164
const UPDATEJOB_PROXY_URL_PREFIX =
162165
"https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.22.0/";
163166

164-
export type Credential = {
165-
type: string;
166-
host?: string;
167-
url?: string;
168-
username?: string;
169-
password?: string;
170-
token?: string;
171-
};
172-
173167
/*
174168
* Language aliases supported by the start-proxy Action.
175169
*

src/start-proxy/types.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export type Credential = {
2+
type: string;
3+
host?: string;
4+
url?: string;
5+
username?: string;
6+
password?: string;
7+
token?: string;
8+
};

0 commit comments

Comments
 (0)