Support tokens with access to custom repositories and user/organization accounts #4
Closed
Description
The use cases we want to cover is
- By default, create a token scoped to the current repository
- Allow to scope to a set of repositories by names for the current owner
- Allow to scope to a different owner (all installation repositories)
- Allow to scope to a set of repositories by names for a different owner
Our API idea is
- uses: actions/create-github-app-token@v1
id: app-token
with:
app_id: ${{ vars.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
owner: some-owner
repositories: some-repo1,some-repo2
Both owner
and repositories
would be optional, and one can be set to the other. owner
defaults to the current repository owner, and repositories defaults to the current repository name.