Member Junction
    Preparing search index...

    Function ResolveInstallationRepositoryScope

    • Extracts explicit repository names (without owner prefix) from allowedRepositories that can be passed to GitHub's POST /app/installations/{id}/access_tokens repositories array when no single target repository was specified (e.g., when minting a sandbox CLI token).

      Note: Wildcard entries like MemberJunction/* cannot be enumerated without an API call, so if a wildcard is present and no target repo is provided, this returns undefined (installation-wide scope). When a specific target repo IS provided and allowed, [repo] is returned so the token is strictly scoped to that one repo.

      Parameters

      • targetRepo: { owner: string; repo: string }
      • allowedRepositories: string[]

      Returns string[]