Skip to content

Latest commit

 

History

History
70 lines (63 loc) · 3.96 KB

20-build-chain.md

File metadata and controls

70 lines (63 loc) · 3.96 KB

Lot 20 — The build chain, official and kept current

Status: decided and built 2026-10-17. Seen the same day: Dependabot's first PR, two crate patches, merged itself once CI had passed. The first attested release seen 2026-11-16, below. Still to see: an update that waits for the maintainer. Taken while Lot 19's spike waits for an Office update. Two parts, in this order: Dependabot keeps current whatever the first part settles on.

1. Official actions, current practice

Read on 2026-10-17: CI uses actions/checkout@v7, actions/upload-artifact@v7 (GitHub's), dtolnay/rust-toolchain@stable and Swatinem/rust-cache@v2 (community); the release publishes with gh.

  • Rust from rustup, already on GitHub's Windows runners, with the toolchain named in rust-toolchain.toml, which pins it on the developer's machine too, instead of dtolnay/rust-toolchain.
  • The cache: actions/cache, keyed on the compiler and Cargo.lock, chosen on CI time measured on 2026-10-17: 1 min 27 s with a warm cache, 4 min 07 s cold, against 1 min 47 s to 2 min 06 s with Swatinem/rust-cache on main the same day.
  • Actions named by version tag, not by commit — the maintainer's choice on 2026-10-17: a tag is a release its publisher calls stable, and Dependabot moves it.
  • Least privilege: contents: read for CI; the release keeps contents: write and adds what the attestation needs.
  • timeout-minutes, a concurrency group that cancels a superseded CI run, and persist-credentials: false on checkout, since nothing pushes.
  • The release's files attested with actions/attest, fed the release's SHA256SUMS.txt so it names exactly the published files and digests. Not actions/attest-build-provenance: its publisher now calls it a wrapper and says new implementations should use actions/attest. GitHub signs, for each file, that this workflow built it from this commit, and gh attestation verify <file> --repo Geeooff/GameModeExecutor checks it. Not a code signature — SmartScreen still warns — but proof the installer was built from the public source, which SHA256SUMS.txt, published on the same page as the files, cannot give. Seen on 0.5.0, 2026-11-16: the MSI downloaded from the release matched SHA256SUMS.txt, and gh attestation verify passed with one SLSA provenance v1 statement naming the MSI, the zip and the recipes zip, signed by release.yml@refs/tags/v0.5.0 at ad7e92dc. A minor of a crate at 1.0 merged itself on the way, toml 1.1.8 to 1.2.1 (#29).

2. Dependabot and automatic merges

  • .github/dependabot.yml for cargo and github-actions, weekly, compatible updates grouped in one PR per ecosystem.
  • Merged automatically only when Cargo calls the update compatible: a patch, or a minor for a crate at 1.0 or later. A 0.x minor — the windows crate's 0.62 to 0.63 — or a major stays a PR for the maintainer. dependabot/fetch-metadata reads the update type; a workflow asks gh pr merge --auto.
  • main protected by a rule requiring the CI check, without which an automatic merge does not wait for it: allow_auto_merge is on and main unprotected, read on 2026-10-17. A change to the repository's settings, so with approval.
  • Security advisories: GitHub's own Dependabot alerts and security updates, found already on on 2026-10-17 with no alert open. GitHub's advisory database carries RustSec's, so the CI audit first planned here would only repeat them.
  • AGENTS.md: an automatic merge is a standing approval for that class of update and nothing else. What Dependabot leaves goes through the upgrade-dependencies skill, which follows each upgrade guide and allows no workaround (added 2026-10-17, at the maintainer's request).

Done when CI and the release use official actions or justified ones, by tag, with least privilege; a release's files carry a verifiable attestation; Dependabot opens PRs for crates and actions, the compatible crate updates merging themselves after a green CI.