You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a fork-pr-contribution skill (.claude/skills/fork-pr-contribution/SKILL.md) so everyone handles open-source contributions the same way:
fork PR ──(squash)──▶ contrib/<pr> ──(PR, full CI, merge commit)──▶ develop
Sanity checks on the contributor PR: lint, format, secret paths and unit tests run on fork PRs since ci: make PR workflows work for pull requests from forks #5772. Lists which checks are expected to be skipped (Docker build, ingestion test, Sonar) or to fail (org-level zizmor scan).
Review the diff before it reaches our repo: in our repo it runs with our secrets. The skill says to stop and escalate on .github/, Dockerfile, npm script, lockfile or test-setup changes, and includes a grep for env, shell and network access.
Squash-merge into contrib/<pr>: the squash commit is authored by the PR author, so the contributor keeps the credit.
Raise contrib/<pr> → develop: reuses the contributor's title and description, with a credit header.
Full CI, then merge with a merge commit: squashing here would make the maintainer the author.
Please explain the objectives of your changes below
Fork PRs can't run the checks that need secrets, and those checks show as skipped, which branch protection treats as passing. Without a shared process, a fork PR can be merged into develop without the full CI ever running. Agreed in standup; first used on #5771 → #5774.
Any changes to existing capabilities/behaviour?
None. Docs and agent skill only, no runtime or CI changes.
Team process for landing open-source (fork) PRs: run the fork-safe
checks on the contributor PR, review the diff before it reaches our
repo, squash-merge it into contrib/<pr>, then raise a PR from
contrib/<pr> to develop that runs the full CI and is merged with a
merge commit so the contributor keeps authorship.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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: b87a869e-9c26-47d8-9ac8-ac283f12e9f6
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.
Adds an agent skill for routing fork contributions through an internal branch so full CI runs before merging into develop, while preserving contributor authorship. No runtime or CI configuration changes are included.
Changes:
Documents fork-safe checks and security review before promoting contributor code.
Defines the squash-to-contrib/<pr>, full-CI, and merge-commit workflow.
Covers contributor credit, follow-up fixes, and branch updates.
File
Description
.claude/skills/fork-pr-contribution/SKILL.md
Adds the fork contribution workflow, review safeguards, and merge instructions.
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.45%. Comparing base (6a245da) to head (6af83c0). ⚠️ Report is 3 commits behind head on develop.
…skill
- record the reviewed head commit in step 2 and merge with
--match-head-commit, so code pushed after review can't reach our repo
- add a follow-up fixes section: fix PRs target the existing
contrib/<pr> branch instead of creating a new one
- pass -R on gh pr update-branch like every other gh command
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Critical security flaws allow mutable PR diffs to bypass review before secret-bearing CI and contributor-controlled titles to execute shell commands on the maintainer’s machine.
A fork PR targeting a branch other than develop passes this check, so step 2 reviews its diff against that branch before step 3 retargets it to a branch created from develop. If the branches have diverged, the promoted changes can differ from the reviewed diff even when the head commit is pinned. Validate baseRefName before review: require develop for an initial contribution or the existing contribution branch for a follow-up, and stop for other bases.
- step 2 fetches the PR head into a local ref, records its SHA and
reviews `git diff origin/<base>...<sha>`; gh pr diff reads the live
head, which the contributor can swap during review
- step 3 and follow-up merges use that same $sha with
--match-head-commit
- step 1 requires the PR base to be develop (or the existing
contrib/<pr> for a follow-up) so the reviewed and merged diffs match
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- replace $sha/$base shell variables with <reviewed-sha>/<base>
placeholders; agents run each block in a fresh shell, so the variable
would be empty and --match-head-commit "" turns the check off
- fetch base and develop with explicit destinations so origin/<base>
exists even in single-branch clones
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human judgment is needed because branch updates can invalidate earlier check results, while fork live-test credential failures may be mistaken for contributor-code failures.
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
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 are the changes introduced in this PR?
Adds a
fork-pr-contributionskill (.claude/skills/fork-pr-contribution/SKILL.md) so everyone handles open-source contributions the same way:scan)..github/, Dockerfile, npm script, lockfile or test-setup changes, and includes a grep for env, shell and network access.contrib/<pr>: the squash commit is authored by the PR author, so the contributor keeps the credit.contrib/<pr>→develop: reuses the contributor's title and description, with a credit header.Please explain the objectives of your changes below
Fork PRs can't run the checks that need secrets, and those checks show as skipped, which branch protection treats as passing. Without a shared process, a fork PR can be merged into
developwithout the full CI ever running. Agreed in standup; first used on #5771 → #5774.Any changes to existing capabilities/behaviour?
None. Docs and agent skill only, no runtime or CI changes.
🤖 Generated with Claude Code