Skip to content

chore(ci): pin PR-title action to commit SHA and add Dependabot#78

Open
Gabrielpanga wants to merge 1 commit into
masterfrom
chore/pin-pr-title-action
Open

chore(ci): pin PR-title action to commit SHA and add Dependabot#78
Gabrielpanga wants to merge 1 commit into
masterfrom
chore/pin-pr-title-action

Conversation

@Gabrielpanga

Copy link
Copy Markdown
Member

What

Hardens the PR-title validation workflow added in #77:

  • 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 the tag to malicious code in our CI.
  • Add .github/dependabot.yml for the github-actions ecosystem (weekly) so pinned actions still receive update PRs, keeping the # vX.Y.Z comment 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-files incident). Dependabot offsets the only downside — no longer getting patches automatically.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant