Stop sending GitHub token if a "hubproxy" instance is in use

This commit is contained in:
Imran Remtulla
2025-09-27 02:40:03 -04:00
parent 3af185b0f8
commit 6830eb64d0

View File

@@ -288,6 +288,9 @@ class GitHub extends AppSource {
settingsProvider, settingsProvider,
); );
String? creds = sourceConfig['github-creds']; String? creds = sourceConfig['github-creds'];
if ((additionalSettings['GHReqPrefix'] as String? ?? '').isNotEmpty) {
creds = null;
}
if (creds != null) { if (creds != null) {
var userNameEndIndex = creds.indexOf(':'); var userNameEndIndex = creds.indexOf(':');
if (userNameEndIndex > 0) { if (userNameEndIndex > 0) {