mirror of
https://github.com/github/codeql-action.git
synced 2026-10-29 17:17:15 +00:00
Use isDefined for password and token in credentialToStr
This commit is contained in:
@@ -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