github-app-token
github-app-token copied to clipboard
feat: Add an optional input `repository_ids`
Close #106
Test
I tested this pull request with the fork version.
- https://github.com/suzuki-shunsuke/github-app-token/releases/tag/v2.2.0
It works well.
Test 1. Use repository_ids
https://github.com/suzuki-shunsuke/test-github-action/actions/runs/6993168247/job/19025551390?pr=184
Run suzuki-shunsuke/[email protected]
with:
app_id: ***
private_key: ***
permissions: {"pull_requests": "write", "issues": "write", "contents": "write"}
repository_ids: [221882701]
github_api_url: https://api.github.com
installation_retrieval_mode: repository
installation_retrieval_payload: suzuki-shunsuke/test-github-action
revoke: true
Token created successfully
Test 2. Don't use repository_ids
https://github.com/suzuki-shunsuke/test-github-action/actions/runs/6993181859/job/19025581353
Run suzuki-shunsuke/[email protected]
with:
app_id: ***
private_key: ***
permissions: {"pull_requests": "write", "issues": "write", "contents": "write"}
github_api_url: https://api.github.com
installation_retrieval_mode: repository
installation_retrieval_payload: suzuki-shunsuke/test-github-action
revoke: true
Token created successfully