Update src/utils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dan Hecker 2025-12-20 13:35:54 -05:00 committed by GitHub
parent da6c752c86
commit d20d6041e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -485,7 +485,10 @@ index-url = ${indexUrl}
fs.writeFileSync(configPath, configContent, {encoding: 'utf8'}); fs.writeFileSync(configPath, configContent, {encoding: 'utf8'});
core.info(`Successfully created pip config file at: ${configPath}`); core.info(`Successfully created pip config file at: ${configPath}`);
// Mask the password in logs if credentials were used // Mask credentials in logs if they were used
if (username) {
core.setSecret(username);
}
if (password) { if (password) {
core.setSecret(password); core.setSecret(password);
} }