Skip to content

ci: move the PR title check to check-pr-title v2.0.3 - #5742

Merged
saikumarrs merged 1 commit into
developfrom
ci/sec-784-check-pr-title-v2
Oct 27, 2026
Merged

saikumarrs merged 1 commit into
developfrom
ci/sec-784-check-pr-title-v2

Conversation

@lvrach

@lvrach lvrach commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

What changed

The PR title check moves from v1 of rudderlabs/github-action-check-pr-title to v2.0.3, pinned by SHA.

  • v2 drops the v1 commitlint rules for the 100-character limit, a trailing period and trailing whitespace.
  • subjectPattern keeps the v1 rule that a subject does not start with a capital letter. It matches v1 on acronyms such as API and SDK.
  • PRs that a bot opens, such as Dependabot, rudder-devbox or StepSecurity, skip the check.
  • Git-generated titles that v1 ignored now fail: Merge branch ..., fixup! ..., and Revert ... without a type. GitHub's Revert "<title>" still passes when the quoted title is valid.
  • The job drops all token permissions. The action reads the title from the event payload.
  • The job gets a 5-minute timeout. A concurrency group per PR cancels older runs.
  • The job ID and name stay the same, so a required check keeps its name.

Why

v1 calls a setup action by tag inside its own steps, so the repo cannot pin every action by SHA. v2.0.3 runs a bundled node24 build and is an immutable release.

How to verify

  1. The "Check PR Title" check passes on this PR.
  2. Retitle the PR to Bad title. The check fails. Restore the title.

Not covered

  • Other workflows in the repo.
  • Branch protection and required check settings.

🤖 Generated with Claude Code

v1 of the action calls actions/setup-node by tag inside its composite
step, so it cannot meet the org rule that pins every action by SHA.
v2.0.3 runs a bundled node24 build and is an immutable release.

Behavior changes in this repo:
- v2 drops the v1 commitlint rules for the 100-character limit, a
  trailing period and trailing whitespace.
- subjectPattern keeps the v1 rule that a subject does not start with
  a capital letter. It is stricter on acronyms: `fix: API timeout`
  passed v1 and now fails.
- PRs that a bot opens, such as Dependabot or a GitHub App, skip the
  check.
- The job drops all token permissions. The action reads the title
  from the event payload.
- The job gets a 5-minute timeout. A concurrency group per PR cancels
  older runs.
- The job ID and name stay the same, so a required check keeps its
  name.

Verify: the "Check PR Title" check passes on this PR. Retitle the PR to
"Bad title" and confirm that the check fails, then restore the title.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.30.1
@lvrach
lvrach requested review from a team as code owners October 27, 2026 15:54
Copilot AI balanced review requested due to automatic review settings October 27, 2026 15:54
@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9326fe32-0e0f-476c-8626-ffc4ec947949

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The workflow changes are supported by the pinned action; the remaining feedback concerns a minor PR-description discrepancy.

1 open issue
What changed in this PR

Updates the PR title validation workflow to SHA-pinned check-pr-title v2.0.3 while preserving the required check’s name.

Changes:

  • Migrates to the bundled Node.js action and configures lowercase-initial subject validation.
  • Removes token permissions and adds a five-minute job timeout.
  • Groups concurrent runs by PR number to cancel outdated checks.
File Description
.github/​workflows/​check-pr-title.yml Updates the action, validation input, permissions, timeout, and concurrency grouping.

Review effort: Balanced

Comment thread .github/workflows/check-pr-title.yml Resolved
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.40%. Comparing base (f3cfa50) to head (8eb4ff3).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5742   +/-   ##
========================================
  Coverage    92.40%   92.40%           
========================================
  Files          737      737           
  Lines        40859    40859           
  Branches      9587     9592    +5     
========================================
  Hits         37754    37754           
+ Misses        2921     2844   -77     
- Partials       184      261   +77     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@saikumarrs
saikumarrs enabled auto-merge (squash) October 27, 2026 17:18
@saikumarrs
saikumarrs merged commit 757d06b into develop Oct 27, 2026
40 checks passed
@saikumarrs
saikumarrs deleted the ci/sec-784-check-pr-title-v2 branch October 27, 2026 17:25
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.

4 participants