Commit 1e95f8d
committed
ci: push changelog via deploy key, drop BOT_TOKEN dependency
PATs (fine- or coarse-grained) issued to bypass-team members were
the only way for the workflow to push past the PRS-ONLY ruleset,
and that came back to bite us when BOT_TOKEN expired. The ruleset
already allows any deploy key with bypass_mode:always, so swap to
that path:
- actions/checkout uses ssh-key: CHANGELOG_DEPLOY_KEY, which
auths the clone over SSH and configures origin for SSH push
- the script reads PR metadata via secrets.GITHUB_TOKEN (the
token has full read for pull_request_target and workflow_dispatch)
- lock GITHUB_TOKEN to contents:read + pull-requests:read since
we no longer need write
- drop the https x-access-token push in favour of ssh-driven
git push origin HEAD:master1 parent 53b6392 commit 1e95f8d
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | | - | |
51 | | - | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
0 commit comments