create-github-app-token/tests/main-token-get-owner-set-repo-non-current-full-name.test.js
Parker Brown 85eb8dd414
feat: support full repository names in repositories input (#372)
The `repositories` input currently treats values like `${{
github.repository }}` as a repository name, which can produce a
duplicated owner in the installation lookup. This changes repository
target resolution so entries may be bare repository names or full
`owner/repository` names, while preserving the existing resolved owner
behavior.

Full repository names are accepted only when their owner matches the
`owner` input, or the current repository owner when `owner` is unset.
The action still creates a single installation token for one owner, and
generated `dist` artifacts are left unchanged for release.

Fixes: #177

---------

Co-authored-by: Copilot <[email protected]>
2026-05-11 12:10:57 -07:00

12 lines
338 B
JavaScript

import { DEFAULT_ENV, test } from "./main.js";
// Verify `main` normalizes full repository names before installation lookup and token scoping.
await test(
() => {},
{
...DEFAULT_ENV,
INPUT_OWNER: DEFAULT_ENV.GITHUB_REPOSITORY_OWNER,
INPUT_REPOSITORIES: `${DEFAULT_ENV.GITHUB_REPOSITORY_OWNER}/toolkit,checkout`,
},
);