Repository navigation
fix(governance): relay fork review events and scan non-UTF-8 history - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
secret_scan.py:git 历史/范围校验不再把补丁输出当 UTF-8 解码。GdeiAssistant 历史中存在非 UTF-8 文件时,旧实现抛UnicodeDecodeError并以 exit 2 结束,导致Gitleaks在合法 PR 上误报失败。templates/pr-review-signal.yml:无权限的信号工作流。fork 与 Dependabot PR 的 review 事件只拿到只读 token,无法发布状态;现在由workflow_run在受信任上下文里评估。risk-gate.yml模板:移除pull_request_review直连触发,改为workflow_run: [PR review signal],并发组包含 relay 的 PR 编号。runner.cjs:支持workflow_run目标选择(优先pull_requests,缺失时按head_repository:head_branch回退)。test-labels与test-codex(此前未执行)。验证
node --test五个套件:152 通过test_secret_scan.py:40 通过(真实 Gitleaks 8.30.1)