mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 09:40:17 +08:00
Support URL
This commit is contained in:
@@ -24,14 +24,15 @@ export type CertificateAuthority = {
|
||||
|
||||
export type Credential = {
|
||||
type: string;
|
||||
host: string;
|
||||
host?: string;
|
||||
url?: string;
|
||||
username?: string;
|
||||
password?: string;
|
||||
token?: string;
|
||||
};
|
||||
|
||||
function CredentialToStr(c: Credential): string {
|
||||
return `Type: ${c.type}; Host: ${c.host}; Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`
|
||||
return `Type: ${c.type}; Host: ${c.host}; Url: ${c.url} Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`
|
||||
}
|
||||
|
||||
export type BasicAuthCredentials = {
|
||||
|
||||
Reference in New Issue
Block a user