Commit c93a0e9
authored
ci: use App token in In-case-of-failure rollback job (#20162)
## Summary
- The `In-case-of-failure` rollback job deletes the release git tag when
the pipeline fails mid-way (after the tag was pushed but before the
release completed)
- It previously used the implicit `GITHUB_TOKEN`, which lacks the
`workflows` scope — tag deletion would fail with "workflows scope may be
required" if the tag pointed to a workflow-touching commit
- Apply the same App token pattern as `build-release`: generate a token
via `RELEASE_BOT` before checkout so `git push -d` uses the App's
credentials (which carry `Workflows: Write`)
## Test plan
- [ ] Verify `In-case-of-failure` job picks up the App token on next
release run
- [ ] No change to happy-path behavior (job only runs on failure)
🤖 Generated with Claude1 parent 6847589 commit c93a0e9
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
702 | 710 | | |
703 | 711 | | |
704 | 712 | | |
705 | 713 | | |
706 | 714 | | |
707 | 715 | | |
708 | 716 | | |
| 717 | + | |
709 | 718 | | |
710 | 719 | | |
711 | 720 | | |
| |||
0 commit comments