Commit 13a480e
committed
ci: Pin accept job to head.sha and push as fast-forward
Two related findings from review bots:
1. accept-api-changes was checking out head.ref (latest branch tip)
while the matrix snapshotted head.sha (event-time tip). If the
contributor pushed during the run, accept would commit old verified
files on top of new code.
2. The blind 'git push' could fail non-fast-forward if the branch moved.
Pin both jobs to head.sha. Push from detached HEAD to refs/heads/head.ref
so the push fails fast (non-FF) if the branch advanced — re-running then
regenerates a fresh snapshot against the new head.1 parent 3711bc7 commit 13a480e
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
131 | | - | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| |||
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
175 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
| |||
0 commit comments