Commit 588c5ab
authored
ci: scope release GitHub App token (#81)
## Summary
- keep the release workflow on `actions/create-github-app-token`
- scope the generated token through the repository owner installation
and back to `notify`
- request only the contents and pull request permissions needed by
release-plz
## Why
The release job failed before checkout because
`actions/create-github-app-token` defaulted to the current repository
lookup and GitHub returned 404 for
`/repos/rolldown/notify/installation`. Setting `owner` and
`repositories` makes the action create the token from the owner
installation instead of relying on the repository-installation lookup
path.
## Verification
- `ruby -e 'require "yaml";
YAML.load_file(".github/workflows/release.yml"); puts "ok"'`
- `git diff --check -- .github/workflows/release.yml`
`actionlint` is not installed locally, so it was not run.1 parent aaadbf3 commit 588c5ab
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
0 commit comments