Repository navigation
ci(codeql): 显式扫描长期分支并衔接发布门禁 - #22
Merged
Merged
Conversation
将 CodeQL 触发范围固定为 main、agent 推送与目标为 main 的 PR,保留三种语言分析。发布门禁改为只认可显式工作流的同分支同提交成功记录,补充旧动态记录和 PR 记录不可替代发布扫描的回归,并同步扫描与合并规则文档。
补齐 PR 改目标到 main 的扫描事件。新增始终执行的 CodeQL required 检查,拒绝分析任务跳过或中立结果,并核对同引用同提交的三类实际分析记录;发布门禁复用分析校验并保留状态变化复核,增加安全结果读取权限及回归。
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.
Summary
CodeQL 改为仓库工作流控制,普通开发分支无需为触发扫描添加分支保护。
同步更新发布门禁,旧动态扫描及 PR 结果不能替代正式分支的发布扫描。GitHub 设置将关闭 Default setup,在 main 要求三项分析及严格汇总检查、错误/高危告警门禁,新扫描验证后移除 agent 传统保护。
Evidence
After: 显式覆盖 main、agent 的推送和目标为 main 的 PR,发布门禁认可新工作流并保留最新结果、竞态与部分重跑校验。
Merge Danger
Door: two-way
工作流与规则均可调整,回退时须同时恢复发布门禁认可的扫描来源。
Blast Radius: CI
影响扫描触发、main 合并与发布资格;不修改应用运行逻辑或个人配置。