ci: build and tag the revision the release names

The version job recorded a source SHA and the release body, tag and per-target
manifests all name it, but the build jobs checked out the branch. A push between
those jobs would have shipped firmware from a newer revision than every one of
them claimed — which is exactly the release-coverage claim the manifests exist
to make honest.

Both downstream checkouts now pin the recorded SHA, so the target list and the
firmware come from the same tree the release describes.
This commit is contained in:
Jason Huebert committed 2026-10-03 16:59:11 -05:00
1 parent e5d872a179
commit 6b6d293516
1 file changed
+7 -2
+7 -2
View File
@@ -285,7 +285,9 @@ jobs:
- name: Clone Repo
uses: actions/checkout@v6
with:
ref: ${{ needs.version.outputs.branch }}
# the revision the release names, not the branch tip: the target list
# must describe the same tree the firmware is built from
ref: ${{ needs.version.outputs.source_sha }}
- name: Setup Build Environment
uses: ./.github/actions/setup-build-environment
@@ -347,7 +349,10 @@ jobs:
- name: Clone Repo
uses: actions/checkout@v6
with:
ref: ${{ needs.version.outputs.branch }}
# pinned, like the target list: if the branch moved after version
# selection, the manifest, the release body and the tag would all name
# a revision this job never built
ref: ${{ needs.version.outputs.source_sha }}
- name: Setup Build Environment
uses: ./.github/actions/setup-build-environment