Commit 7e0ff4c
authored
ci: use dedicated release App token to publish releases (backport 2.36) (#28555)
Backport of #28553 to `release/2.36`.
## Change
Use a dedicated GitHub App token for the `Publish release` step:
- Add a `Generate release App token` step using `secrets.RELEASE_APP_ID`
/ `secrets.RELEASE_APP_PRIVATE_KEY`.
- Switch only that step's `GITHUB_TOKEN` to the minted App token.
## Required before merge (admin)
1. Create the release GitHub App (least privilege) and install it on
`coder/coder`.
2. Configure `RELEASE_APP_ID` / `RELEASE_APP_PRIVATE_KEY`.
3. Add the App to the tag-create protection ruleset bypass list.
Refs coder/security-automation#297.1 parent 281d487 commit 7e0ff4c
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
544 | 560 | | |
545 | 561 | | |
546 | 562 | | |
| |||
579 | 595 | | |
580 | 596 | | |
581 | 597 | | |
582 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
583 | 601 | | |
584 | 602 | | |
585 | 603 | | |
| |||
0 commit comments