mirror of
https://github.com/actions/create-github-app-token.git
synced 2026-11-17 04:18:57 +00:00
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]>
8 lines
318 B
JavaScript
8 lines
318 B
JavaScript
import { test } from "./main.js";
|
|
|
|
// Verify `main` successfully obtains a token when `owner` is omitted and `repositories` mixes a full repository name with bare repository names.
|
|
await test(() => {
|
|
delete process.env.INPUT_OWNER;
|
|
process.env.INPUT_REPOSITORIES = `${process.env.GITHUB_REPOSITORY},toolkit`;
|
|
});
|
|
|