Skip to content

ci: pin every action to a commit and stop packaging on push to master - #281

Merged
SteveGilvarry merged 1 commit into
masterfrom
ci/pin-actions
Nov 18, 2026
Merged

SteveGilvarry merged 1 commit into
masterfrom
ci/pin-actions

Conversation

@SteveGilvarry

Copy link
Copy Markdown
Member

Why

Only two actions were pinned to a commit. The rest followed a movable tag such as @v5 or @stable. If one of those tags were moved to different code, it would run in our jobs, including the ones that build release packages.

Separately, the packaging install test ran twice for every change: once on the pull request and again on the merge to master. It takes 30 minutes or more.

What changes

Every action is pinned to a full commit SHA, with the version in a comment beside it. Each pin is the commit its tag points at today, so nothing changes in what runs, with one exception below.

Action Pinned at
actions/checkout v6.1.0
actions/cache (and /save, /restore) v5.1.0
actions/upload-artifact v4.6.2
actions/download-artifact v4.3.0
actions/upload-pages-artifact v3.0.1
actions/deploy-pages v4.0.5
Swatinem/rust-cache v2.9.3
taiki-e/install-action v2.90.5
dtolnay/rust-toolchain tip of its stable branch

Dependabot keeps the pins current. A new .github/dependabot.yml updates GitHub Actions weekly, grouped into one pull request.

Packaging no longer runs on push to master. It still runs on pull requests that touch packaging, config, daemon, migration or stream-source paths, nightly, and on manual dispatch. The nightly run saves the build cache, which the existing condition already allowed.

Worth a reviewer's eye

  • checkout v4 becomes v6 in release.yml and docs.yml. That is the one behaviour change. release.yml only runs on a tag, so this PR's CI does not exercise it. v6 already runs in test.yml and packaging.yml, but not inside the fedora, openSUSE and Arch containers the release jobs use.
  • A change outside the packaging path filter now waits for the nightly. The push run used to cover any merge. If a change elsewhere in src/ breaks the package, it shows up the next morning, not on merge.
  • dtolnay/rust-toolchain has no version tags. It is pinned to a commit on its stable branch. Dependabot may not offer updates for it, so it may need a manual bump now and then.

Checked

  • Every floating tag was compared with the release it resolved to, and each matched the SHA pinned here.
  • All five workflow files and the Dependabot config parse as YAML.
  • I did not run actionlint. It is not installed locally.

🤖 Generated with Claude Code

Only two actions were pinned to a commit. The rest followed a movable
tag, so a retagged release of a third-party action would have run in the
jobs that build release packages. Each one is now pinned to the commit
its tag points at today, with the version beside it. The eight uses of
checkout v4 move to v6 so there is one version.

Pins go stale, so Dependabot now updates GitHub Actions weekly, as one
grouped pull request.

Packaging no longer runs on push to master. The pull request already
tested the same code, and the job takes 30 minutes or more. The nightly
run still covers master and saves the build cache.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@SteveGilvarry
SteveGilvarry merged commit 9b2c062 into master Nov 18, 2026
23 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant