(source: MarketplaceSource)
| 459 | * git URLs (e.g., git@github.com:owner/repo.git or https://github.com/owner/repo.git). |
| 460 | */ |
| 461 | export function isSourceInBlocklist(source: MarketplaceSource): boolean { |
| 462 | const blocklist = getBlockedMarketplaces() |
| 463 | if (blocklist === null) { |
| 464 | return false |
| 465 | } |
| 466 | return blocklist.some(blocked => |
| 467 | areSourcesEquivalentForBlocklist(source, blocked), |
| 468 | ) |
| 469 | } |
| 470 | |
| 471 | /** |
| 472 | * Check if a marketplace source is allowed by enterprise policy. |
no test coverage detected