Commit ec48ed2
authored
fix(ci): changelog workflow must open a PR, not push to protected master (#68)
* fix(ci): deliver generated CHANGELOG.md via PR, not a direct push
The direct `git push origin HEAD:master` was rejected by the repository
ruleset ("Changes must be made through a pull request") — master is
protected, so the CI bot cannot push to it.
Replace the manual commit/push step with peter-evans/create-pull-request
(SHA-pinned, v8.1.1): generation + `test -s` verification stay; the
action pushes a fixed `automation/update-changelog` branch and opens or
updates a PR, and no-ops when nothing changed. Add `pull-requests: write`.
This makes the generated changelog comply with the same PR-only
governance the rest of the repo uses, with no privileged bypass on the
protected branch.
* docs(ci): document why GITHUB_TOKEN is intentional for the changelog PR
Copilot flagged that GITHUB_TOKEN-created PRs don't trigger CI/Sonar and
"may be unmergeable if branch protection requires them". Verified the
master ruleset: it requires only 1 approving review, NOT status checks.
So the changelog PR is mergeable after a human review; running CI on a
generated CHANGELOG.md is low value. Add an inline rationale so a PAT/App
token isn't swapped in later (a managed elevated secret for no benefit).
Comment-only.1 parent 2867eb0 commit ec48ed2
1 file changed
Lines changed: 35 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
0 commit comments