mirror of
https://github.com/github/codeql-action.git
synced 2026-04-05 03:02:16 +00:00
Use isDefined for password and token in credentialToStr
This commit is contained in:
7
lib/start-proxy-action.js
generated
7
lib/start-proxy-action.js
generated
@@ -121409,10 +121409,13 @@ function credentialToStr(credential) {
|
||||
appendIfDefined("Username", credential.username);
|
||||
}
|
||||
if ("password" in credential) {
|
||||
appendIfDefined("Password", credential.password ? "***" : void 0);
|
||||
appendIfDefined(
|
||||
"Password",
|
||||
isDefined2(credential.password) ? "***" : void 0
|
||||
);
|
||||
}
|
||||
if (isToken(credential)) {
|
||||
appendIfDefined("Token", credential.token ? "***" : void 0);
|
||||
appendIfDefined("Token", isDefined2(credential.token) ? "***" : void 0);
|
||||
}
|
||||
if (isAzureConfig(credential)) {
|
||||
appendIfDefined("Tenant", credential.tenant_id);
|
||||
|
||||
@@ -143,10 +143,13 @@ export function credentialToStr(credential: Credential): string {
|
||||
}
|
||||
|
||||
if ("password" in credential) {
|
||||
appendIfDefined("Password", credential.password ? "***" : undefined);
|
||||
appendIfDefined(
|
||||
"Password",
|
||||
isDefined(credential.password) ? "***" : undefined,
|
||||
);
|
||||
}
|
||||
if (isToken(credential)) {
|
||||
appendIfDefined("Token", credential.token ? "***" : undefined);
|
||||
appendIfDefined("Token", isDefined(credential.token) ? "***" : undefined);
|
||||
}
|
||||
|
||||
if (isAzureConfig(credential)) {
|
||||
|
||||
Reference in New Issue
Block a user