Skip to content

ci: pin actions to full commit SHAs, drop setup-xcode - #4

Merged
z33b0t merged 2 commits into
mainfrom
ci/pin-actions-to-sha
Jul 28, 2026
Merged

ci: pin actions to full commit SHAs, drop setup-xcode#4
z33b0t merged 2 commits into
mainfrom
ci/pin-actions-to-sha

Conversation

@z33b0t

Copy link
Copy Markdown
Contributor

Mutable action tags let an upstream retag execute new code in our jobs. That matters most in mac.yml, where actions run in the same job that holds the Developer ID p12, the notary key and HOMEBREW_TAP_TOKEN.

  • Pinned all actions to full commit SHAs across the four workflows, with the version in a trailing comment so bumps stay reviewable.
  • Removed maxim-lobanov/setup-xcode. A pin freezes what a third-party action ships but not what it can read, and selecting Xcode is a one-liner. Now inlined as xcode-select against the highest-versioned non-beta /Applications/Xcode_*.app.
  • Added .github/dependabot.yml so the pins don't silently rot — it bumps the SHA and the comment together, grouped into one weekly PR.

sha_pinning_required is now enabled on the repo, so any branch still carrying tag-pinned uses: lines will fail until rebased past this.

The select latest stable Xcode and toolchain versions steps in the mac job are the ones to check — they exercise the replacement.

z33b0t added 2 commits July 28, 2026 22:52
Mutable tags let an upstream retag execute new code in our jobs. That
matters most in mac.yml, where the third-party setup-xcode runs in the
same job that later holds the Developer ID p12, the notary key and
HOMEBREW_TAP_TOKEN.
Each SHA is the commit the tag pointed at, with the version in a
trailing comment so bumps stay reviewable. setup-xcode's v1 is an
annotated tag, so this is the dereferenced commit, not the tag object.
The signing job holds the Developer ID key, the notary key and
HOMEBREW_TAP_TOKEN; a pin freezes what a third-party action ships but
not what it can read. Selecting Xcode is a one-liner, so do it inline
and remove the dependency instead.
Dependabot keeps the remaining SHA pins from rotting — it bumps the SHA
and the version comment together, grouped into a single weekly PR.
@z33b0t
z33b0t merged commit 09e2c7e into mainJul 28, 2026
11 checks passed
@z33b0t
z33b0t deleted the ci/pin-actions-to-sha branch July 28, 2026 22:14
z33b0t added a commit that referenced this pull request Jul 29, 2026
The release path produced a notarized macOS zip, a Windows zip and a sha256 in
the Homebrew cask, none of it tied back to the run or commit that built it. A
checksum proves the file didn't change in transit; anyone who can write to the
release (or the tap) can publish a consistent zip-plus-checksum pair.
Notarization proves Apple saw the binary and that it carries our Developer ID —
it says nothing about which source tree it was built from.
Adds actions/attest-build-provenance (pinned to a SHA, per #4) to both release
jobs, publishing a signed SLSA statement that binds the artifact digest to the
repo, workflow and commit:
gh attestation verify Blurt-macOS.zip --repo lightware-dev/blurt
Scoped to release tags — attestation is about what we publish, and a PR build
isn't. The version-less Blurt-<platform>.zip copies need no separate statement:
they're byte-identical and attestations are keyed by digest, not filename.
Per-job permissions widen to id-token: write + attestations: write.
This matters more on the Windows side, where releases are unsigned (#9), so the
attestation is currently the only cryptographic link between a download and this
repository. It is not a substitute for signing, and neither defends against repo
write access: an attacker who can push a tag gets CI to attest their payload.
What both defend is a release asset replaced *without* a code push.
Also fixes a README claim while adding the verification instructions: the
Windows section said "grab the latest signed build", which has never been true —
exactly the misreading #9 is about, and it was in the docs as well as the
workflow.
Closes#24
Co-authored-by: z33b0t <z33b0t@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@z33b0t