Commit 0dd0fb0
authored
ci: scope the role-permissions token to saas-proto (#5021)
The Update Custom Role Permissions workflow has failed on every run since
it was added in #4293 (6 of 6 scheduled runs, starting 2026-06-29). It
fetches protogen/custom_role_permissions.json from the private saas-proto
repo, and every run failed with:
Error: HTTP 404: {"message":"Not Found", ...}
The 404 is misleading. The file exists at that path. The problem is that
create-github-app-token scopes the token to the current repository when
neither owner nor repositories is set, so the token cannot see saas-proto,
and GitHub returns 404 rather than 403 for private repos a token cannot
see.
Set owner and repositories so the token covers both repos. This matches
what temporalio/cli does in trigger-docs.yml when it dispatches into this
repo.
Requires the temporal-cicd app to be installed on saas-proto with
Contents: read. If it is not, token generation now fails with an explicit
"app not installed" error instead of a phantom 404.1 parent 6c5baf9 commit 0dd0fb0
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| |||
0 commit comments