Commit 904d4a7
authored
ci: use dedicated release App token to publish releases (backport 2.34) [ESR] (#28590)
Backport of #28553 to `release/2.34`.
Use a dedicated GitHub App token (`secrets.RELEASE_APP_ID` /
`secrets.RELEASE_APP_PRIVATE_KEY`) for the `Publish release` step
instead of the default `GITHUB_TOKEN`.
`gh release create` targets a release-branch commit that modifies files
under `.github/workflows/` relative to the default branch. The
create-release API requires the authenticating token to be authorized to
modify workflows; the default `GITHUB_TOKEN` is not, so it fails with
`HTTP 403: Resource not accessible by integration`. The
`coder-release-publisher` App token has code + workflows write.
Requires `RELEASE_APP_ID` / `RELEASE_APP_PRIVATE_KEY` to be configured
(already set on `coder/coder`).
Refs coder/security-automation#297.1 parent 23ed566 commit 904d4a7
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
556 | 568 | | |
557 | 569 | | |
558 | 570 | | |
| |||
591 | 603 | | |
592 | 604 | | |
593 | 605 | | |
594 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
595 | 609 | | |
596 | 610 | | |
597 | 611 | | |
| |||
0 commit comments