Repository navigation
Pin CI actions to SHAs and let Dependabot keep them current - #101
Merged
Merged
Conversation
A moved or compromised tag would otherwise change what CI runs without a diff here. The trailing version comment keeps the pins readable and lets Dependabot bump them. Also moves setup-node v4 -> v7.1.0 and checkout v4 -> v7.0.1.
Without a config Dependabot only opens security PRs, so the SHA pins would go stale. The cooldown keeps a fresh, possibly compromised release from being proposed until it has had two weeks in the wild.
Nothing in CI writes to the repo, so a compromised action or npm install script should not inherit the repo's default token scopes.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Moving actions from floating tags to full commit SHAs means a moved or hijacked tag can no longer change what CI runs. Each pin keeps the release tag in a trailing comment (
# v7.0.1), which is the format Dependabot reads and updates.actions/setup-nodev4 → v7.1.0 andactions/checkoutv4 → v7.0.1. None of the breaking changes from v5 to v7 apply here: we setcache: npmexplicitly, don't useNODE_AUTH_TOKEN, and don't usepull_request_target..github/dependabot.ymlwith weekly updates for github-actions and the docker-broker's npm deps. A 14-day cooldown means Dependabot only proposes a release once it is two weeks old. Major@types/nodebumps are ignored so the types stay on the Node major the broker runs.contents: read).docs/development/testing.md.Not covered: the Docker base images still use floating tags.