Repository navigation
ci: remove contribution gate pull_request_target trigger - #7693
Conversation
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: not applicable (no reference sources changed).
The Contribution Gate now runs only when a maintainer starts a sweep, and the contributor and maintainer guides reflect that change. Both reviewers identified the same nit in the setup-bun version comment. The review was static.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| ⚪ NIT | .github/workflows/contribution-gate.yml:35 |
dependency-annotation |
claude+codex | The setup-bun pin comment drops the v prefix from the release tag it documents. |
Stats
Claude findings: 1 · Codex findings: 1 · Confirmed: 1 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
kanadgupta
left a comment
There was a problem hiding this comment.
i do know we use this workflow for gating external contributors — mostly happy with this as-is (once the comment below is addressed) but might be worth a fast-follow to identify a way to safely get this workflow running in a way that doesn't require manual intervention
…arget' into mdonnalley/remove-pull-request-target
kanadgupta
left a comment
There was a problem hiding this comment.
one nit below otherwise LGTM!
Restore automated contribution-gate enforcement after supabase#7693 removed the per-PR trigger. Sweep every 15 minutes, with manual sweeps and dry-run support retained. Run only trusted default-branch code and treat PR metadata as API data. Keep scoped token permissions, disable the Bun executable cache, and bound each run to 15 minutes. Serialize sweeps and queue pending runs so a scheduled run does not replace a pending manual sweep. Continue processing later PRs after an individual failure, then fail the run with the affected PR numbers. Reuse existing bot-authored comments when the explanation is unchanged, skip linked-issue queries for exempt authors, and cache permission results within each sweep. Update contribution documentation to describe scheduled enforcement, possible scheduling delays, and re-evaluation after issue-label changes or PR reopening.
Remove the contribution gate’s
pull_request_targettrigger and its single-PR job so untrusted PR events no longer start this privileged workflow.Keep the manual sweep and dry-run option. Update contributor and maintainer documentation to explain that contribution-policy enforcement now requires a maintainer to run the sweep.