Repository navigation
ci: pin every action to a commit and stop packaging on push to master - #281
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Only two actions were pinned to a commit. The rest followed a movable tag such as
@v5or@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.
actions/checkoutactions/cache(and/save,/restore)actions/upload-artifactactions/download-artifactactions/upload-pages-artifactactions/deploy-pagesSwatinem/rust-cachetaiki-e/install-actiondtolnay/rust-toolchainstablebranchDependabot keeps the pins current. A new
.github/dependabot.ymlupdates 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
checkoutv4 becomes v6 inrelease.ymlanddocs.yml. That is the one behaviour change.release.ymlonly runs on a tag, so this PR's CI does not exercise it. v6 already runs intest.ymlandpackaging.yml, but not inside the fedora, openSUSE and Arch containers the release jobs use.src/breaks the package, it shows up the next morning, not on merge.dtolnay/rust-toolchainhas no version tags. It is pinned to a commit on itsstablebranch. Dependabot may not offer updates for it, so it may need a manual bump now and then.Checked
actionlint. It is not installed locally.🤖 Generated with Claude Code