From 6b6d293516d07a07c44656d65e4065a0af3bcfdf Mon Sep 17 00:00:00 2001 From: Jason Huebert Date: Sat, 3 Oct 2026 16:59:11 -0500 Subject: [PATCH] ci: build and tag the revision the release names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/workflows/filter-build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/filter-build.yml b/.github/workflows/filter-build.yml index 52fa36af..b3835903 100644 --- a/.github/workflows/filter-build.yml +++ b/.github/workflows/filter-build.yml @@ -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