fix: gate official badge on GitHub provider type

This commit is contained in:
Rohit Ghumare
2026-04-11 13:56:26 +01:00
parent c533d6f3bc
commit 8b4f207fa1
+1 -1
View File
@@ -451,7 +451,7 @@ export class InstallCommand extends Command {
const sourceProvider = detectProvider(this.source);
const parsedSource = sourceProvider?.parseSource(this.source);
const normalizedSource = parsedSource ? `${parsedSource.owner}/${parsedSource.repo}` : this.source;
const isOfficial = officialSources.includes(normalizedSource);
const isOfficial = sourceProvider?.type === "github" && officialSources.includes(normalizedSource);
const scorer = new TrustScorer();
for (const skill of skillsToInstall) {