karajan-code 1.28.0 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sonar/scanner.js +4 -0
package/package.json
CHANGED
package/src/sonar/scanner.js
CHANGED
|
@@ -144,6 +144,10 @@ async function resolveSonarToken(config, apiHost) {
|
|
|
144
144
|
].filter(Boolean);
|
|
145
145
|
|
|
146
146
|
for (const password of new Set(candidates)) {
|
|
147
|
+
if (password === "admin") {
|
|
148
|
+
// eslint-disable-next-line no-console
|
|
149
|
+
console.warn("[karajan] WARNING: Using default admin/admin credentials for SonarQube. Set KJ_SONAR_TOKEN for production use.");
|
|
150
|
+
}
|
|
147
151
|
const valid = await validateAdminCredentials(apiHost, adminUser, password);
|
|
148
152
|
if (!valid) continue;
|
|
149
153
|
const token = await generateUserToken(apiHost, adminUser, password);
|