Skip to content

ci: remove contribution gate pull_request_target trigger - #7693

Merged
mdonnalley merged 6 commits into
developfrom
mdonnalley/remove-pull-request-target
Nov 18, 2026
Merged

mdonnalley merged 6 commits into
developfrom
mdonnalley/remove-pull-request-target

Conversation

@mdonnalley

Copy link
Copy Markdown
Contributor

Remove the contribution gate’s pull_request_target trigger 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.

@mdonnalley
mdonnalley requested review from a team and supabase-oss as code owners November 18, 2026 19:19
@mdonnalley
mdonnalley requested a review from avallete November 18, 2026 19:19

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤖 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.

Comment thread .github/workflows/contribution-gate.yml Resolved

@kanadgupta kanadgupta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Comment thread .github/scripts/contribution-gate.ts Resolved

@kanadgupta kanadgupta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

one nit below otherwise LGTM!

Comment thread .github/workflows/contribution-gate.yml Resolved
@mdonnalley
mdonnalley added this pull request to the merge queue Nov 18, 2026
Merged via the queue into develop with commit 6a2e55a Nov 18, 2026
46 checks passed
@mdonnalley
mdonnalley deleted the mdonnalley/remove-pull-request-target branch November 18, 2026 19:56
TFSebben pushed a commit to TFSebben/supabase_cli that referenced this pull request Nov 19, 2026
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.
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