Commit 8456a8e
fix: pin workflow checkouts to github.sha instead of github.ref
github.ref resolves to the branch name (refs/heads/<branch>) for
workflow_dispatch events, so long-queued matrix jobs would check
out whatever was at HEAD when the runner picked them up — not the
commit that was HEAD at dispatch time. This meant a sweep could
end up running across multiple commits if the branch was updated
mid-sweep.
Switch the fallback to github.sha, which for workflow_dispatch is
the SHA at dispatch time and is inherited by reusable workflows
from the caller's context. All jobs in a single run now use the
same commit.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9a06d22 commit 8456a8e
3 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
0 commit comments