Extracts explicit repository names (without owner prefix) from allowedRepositories
that can be passed to GitHub's POST /app/installations/{id}/access_tokensrepositories 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.
Extracts explicit repository names (without owner prefix) from
allowedRepositoriesthat can be passed to GitHub'sPOST /app/installations/{id}/access_tokensrepositoriesarray 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 targetrepois provided, this returnsundefined(installation-wide scope). When a specific targetrepoIS provided and allowed,[repo]is returned so the token is strictly scoped to that one repo.