ci: add verifiable contributor trust gate#91
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (6)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
变更说明
引入基于可验证贡献信息的 PR 门禁,减少低质量 Agent/Bot 投稿,同时保留维护者判断空间:
implementation-approved标签时才能通过;contributor-check:passed、needs-contributor-info和needs-maintainer-review标签;pull_request_target只检出受信任的 base SHA,不读取或执行外部 PR 代码;Action 均固定到完整提交 SHA;GitHub 本身不能阻止用户创建 Issue 或 PR,因此门禁在合并前强制校验授权和证据,避免未讨论的奖励任务实现被合入。
关联任务
Closes #89
验证方式
node --test .github/scripts/contributor-trust/rules.test.mjs:8 项测试全部通过。node --check .github/scripts/contributor-trust/run.mjs:通过。git diff --check:通过。pnpm install --frozen-lockfile在执行项目测试前因现有package.json与锁文件的patchedDependencies配置不一致而停止;本 PR 未修改该配置或产品代码。贡献声明
AI 使用情况:使用 Codex 辅助实现;已人工核对工作流权限、外部 PR 安全边界、标签/评论幂等逻辑,并运行上述测试。