chore(ci): pin PR-title action to commit SHA and add Dependabot#78
Open
Gabrielpanga wants to merge 1 commit into
Open
chore(ci): pin PR-title action to commit SHA and add Dependabot#78Gabrielpanga wants to merge 1 commit into
Gabrielpanga wants to merge 1 commit into
Conversation
Pin amannn/action-semantic-pull-request to its full commit SHA (48f256284bd46cdaab1048c3721360e808335d50, tag v6.1.1) instead of the mutable v6.1.1 tag. A SHA is immutable, so a compromised maintainer account cannot repoint it to malicious code in our CI. Add .github/dependabot.yml for the github-actions ecosystem so pinned actions still receive update PRs (keeping the # vX.Y.Z comment in sync) despite no longer floating on a tag. Co-Authored-By: Claude Opus 4.8 (1M context) <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 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.
What
Hardens the PR-title validation workflow added in #77:
amannn/action-semantic-pull-requestto its full commit SHA (48f256284bd46cdaab1048c3721360e808335d50, tagv6.1.1) instead of the mutablev6.1.1tag. A SHA is immutable, so a compromised maintainer account cannot repoint the tag to malicious code in our CI..github/dependabot.ymlfor thegithub-actionsecosystem (weekly) so pinned actions still receive update PRs, keeping the# vX.Y.Zcomment in sync despite no longer floating on a tag.Why
Pinning to a SHA is the GitHub / OpenSSF Scorecard recommended practice against supply-chain attacks on third-party actions (cf. the
tj-actions/changed-filesincident). Dependabot offsets the only downside — no longer getting patches automatically.