You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,12 @@ jobs:
173
173
body: "Hello, World!"
174
174
```
175
175
176
+
You can include the current repository in the list with `${{ github.repository }}`:
177
+
178
+
```yaml
179
+
repositories: ${{ github.repository }},repo2
180
+
```
181
+
176
182
### Create a token for all repositories in another owner's installation
177
183
178
184
```yaml
@@ -377,6 +383,8 @@ steps:
377
383
378
384
> [!NOTE]
379
385
> If `owner` is set and `repositories` is empty, access will be scoped to all repositories in the provided repository owner's installation. If `owner` and `repositories` are empty, access will be scoped to only the current repository.
386
+
>
387
+
> Repository entries may include an owner, for example `owner/repo1`. The owner portion must match the `owner` input, or the current repository owner if `owner` is unset.
0 commit comments