Skip to content

PSIRTSUPT-20625: add provenance check to auto-merge flow - #482

Merged
rhybrillou merged 2 commits into
masterfrom
yann/PSIRTSUPT-20625
Jul 29, 2026
Merged

PSIRTSUPT-20625: add provenance check to auto-merge flow#482
rhybrillou merged 2 commits into
masterfrom
yann/PSIRTSUPT-20625

Conversation

@rhybrillou

Copy link
Copy Markdown
Contributor

Description

Add comprehensive dependabot provenance check for dependabot auto-merge flow.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@rhybrillou, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 16 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: f51824c5-9b0d-4594-aa8b-a9597990b639

📥 Commits

Reviewing files that changed from the base of the PR and between 91ca263 and 3bcb645.

📒 Files selected for processing (1)
  • .github/workflows/auto-merge.yml
📝 Walkthrough

Walkthrough

The auto-merge workflow now verifies Dependabot actor identity, pull request author type, head branch naming, and head commit signature before invoking the auto-merge action.

Changes

Dependabot provenance verification

Layer / File(s) Summary
Add provenance verification gate
.github/workflows/auto-merge.yml
Adds a gh api-based shell step that checks the actor, author type, branch prefix, and verified commit signature, failing with an error before auto-merge proceeds.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: adding a provenance check to the auto-merge flow.
Description check ✅ Passed The description matches the template and briefly explains the change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch yann/PSIRTSUPT-20625

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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/auto-merge.yml:
- Around line 12-18: Prevent shell injection in the workflow’s provenance checks
by removing direct GitHub expression interpolation for attacker-controlled
pull-request metadata, including the branch name near the actor validation.
Expose required expression values through env entries, then reference them only
as quoted shell variables in the run script while preserving the existing
validation and rejection behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 074b0a97-7726-417f-a105-f3ada19d77e5

📥 Commits

Reviewing files that changed from the base of the PR and between afb7e0b and 91ca263.

📒 Files selected for processing (1)
  • .github/workflows/auto-merge.yml

Comment thread .github/workflows/auto-merge.yml
@rhybrillou
rhybrillou merged commit 6836ad8 into master Jul 29, 2026
4 checks passed
@rhybrillou
rhybrillou deleted the yann/PSIRTSUPT-20625 branch July 29, 2026 10:36
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.

2 participants