Skip to content

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

Open
Gabrielpanga wants to merge 2 commits 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 2 commits 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.
Adds a maven update entry so Dependabot opens PRs for vulnerable/outdated
Java dependencies (e.g. the gson CVE-2022-25647 handled manually in a
separate PR), not just GitHub Actions.
@Gabrielpanga Gabrielpanga force-pushed the chore/pin-pr-title-action branch from 6e79a9b to 3181ee1 Compare June 10, 2026 08:51

@Gabrielpanga Gabrielpanga left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ✅ Approve

Diff: +12 −1, 2 files. Correct and well-scoped.

  • SHA pin verified: 48f256284bd46cdaab1048c3721360e808335d50 is the actual commit behind tag v6.1.1 (resolved via the GitHub refs API). Pinning to a full 40-char SHA is the OpenSSF Scorecard / GitHub-recommended hardening against a mutable tag being repointed by a compromised maintainer account.
  • # v6.1.1 comment retained so Dependabot recognizes the pin and keeps it in sync on future bumps.
  • dependabot.yml well-formed: now tracks both github-actions and maven ecosystems (directory: "/", weekly), so vulnerable Java deps (cf. the gson CVE in the sibling PR) get update PRs automatically too.

Note: the earlier test failure was unrelated to this diff (a test-setup issue already fixed on master). This branch has been rebased onto current master, so CI should now be green.

@Gabrielpanga Gabrielpanga force-pushed the chore/pin-pr-title-action branch from 3181ee1 to 38aad64 Compare June 10, 2026 13:51
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