Repository navigation
fix(governance): read the owner from protected variables - #3
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.
改动内容
policy.json。main.cjs从GOVERNANCE_OWNER_ID/GOVERNANCE_OWNER_LOGIN读取,模板传入组织或仓库变量RISK_GATE_OWNER_ID/RISK_GATE_OWNER;变量缺失或只配置一半时检查失败,不会静默降级。owner在策略校验中变为可选字段;出现时仍校验形状。labelEvidence在没有 owner 时不接受owner-approved。owner仍是合法字段,但不在required中。test-main.cjs覆盖变量覆盖与失败关闭。验证
node --test六个套件:159 通过test_secret_scan.py:40 通过(真实 Gitleaks 8.30.1)