ci: run external contributor policy on pull_request_target with relaxed limits#1252
Conversation
This comment has been minimized.
This comment has been minimized.
PR #1252 Review - Mergeability: ✅ APPROVEDCode Review Findings
Security Review Findings
SummaryThe PR is ready to merge. All identified issues are suggestions for improvement (medium or low severity) and not merge blockers. The change successfully addresses the functional need while maintaining good security practices. |
- Change MAX_ADDITIONS from 400 to 1000 in pr-policy.yml - Update permissions comment to 'Minimum required' (accurate for pull_request_target) - Update CONTRIBUTING.md to recommend ~400 lines with a hard limit of 1,000 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
.github/workflows/pr-policy.ymltrigger frompull_requesttopull_request_targetcontents: read,pull-requests: write)Why
pull_requestfrom forks can be read-only for PR write operations, which caused policy enforcement to fail when trying to comment/close violating PRsRisk Mitigation
Validation
pnpm cicheck(pass)