AI觉醒星球
Awakening is here
Knowledge File / 全球热点解读
2026-05-29 5 浏览 公开

趋势解读:CodeQL 2.25.5 improves query accuracy for GitHub Actions,提升开发者接入体验

CodeQL 2.25.5 发布,提升 C/C++、Java/Kotlin 和 GitHub Actions 查询准确性,引入 path-injection[read] 区分只读路径,减少误报,并扩展复合动作分析。

SOURCE / 全球热点解读 MIN / 9 ACCESS / 公开 POST / 2026-05-29 05:09:44

原贴

查看原文
作者:Allison 来源站点:github.blog 原贴时间:

原文

CodeQL is the static analysis engine behind GitHub code scanning , which finds and remediates security issues in your code. We’ve recently released CodeQL 2.25.5 , which includes accuracy improvements across C/C++, Java/Kotlin, and GitHub Actions queries. We’ve introduced a new sink kind, path-injection[read] , for Models-as-Data rows that only read from a path (such as ClassLoader.getResource , FileInputStream , and FileReader ). This helps queries distinguish read-only path sinks from more dangerous ones. We’ve extended the poisonable_steps modeling to detect additional sinks, including scripts executed via Python modules and go run in directories. The cpp/cleartext-transmission query no longer raises an alert on calls to fscanf (and variants) when the call reads from an input that isn’t a socket, reducing false positives. The java/zipslip query no longer reports archive entry names that flow only to read-only path sinks such as ClassLoader.getResource , FileInputStream , and FileReader , reducing false positives. The actions/unpinned-tag query now analyzes composite action metadata ( action.yml and action.yaml files) in addition to workflow files, providing more comprehensive detection. We’ve fixed the help file descriptions for the actions/untrusted-checkout/critical , actions/untrusted-checkout/high , and actions/untrusted-checkout/medium queries. We’ve renamed actions/untrusted-checkout/high to more clearly describe which parts of the scenario run in a privileged context. For a full list of changes, please refer to the complete changelog for version 2.25.5 . Every new version of CodeQL is automatically deployed to users of GitHub code scanning on github.com. The new functionality in CodeQL 2.25.5 will also be included in GitHub Enterprise Server (GHES) release 3.22. If you use an older version of GHES, you can manually upgrade your CodeQL version .

中文翻译

CodeQL 是 GitHub 代码扫描背后的静态分析引擎,它可以查找并修复代码中的安全问题。我们最近发布了 CodeQL 2.25.5,其中包括 C/C++、Java/Kotlin 和 GitHub Actions 查询的准确性改进。

核心信息

CodeQL 2.25.5 发布,提升 C/C++、Java/Kotlin 和 GitHub Actions 查询准确性,引入 path-injection[read] 区分只读路径,减少误报,并扩展复合动作分析。

  • 提升C/C++、Java/Kotlin和Actions查询准确性。
  • 引入path-injection[read]区分只读和危险路径。
  • 减少cpp/cleartext-transmission和java/zipslip误报。
  • actions/unpinned-tag支持复合动作元数据分析。
  • 自动部署到github.com,GHES 3.22包含新功能。

详细解读

这是什么信号

CodeQL 2.25.5 版本更新是 GitHub 持续优化其代码安全扫描能力的重要信号。此次更新聚焦于提升查询准确性,减少误报,并扩展对 GitHub Actions 复合动作的检测,表明安全工具正朝着更精准、更易集成的方向发展。

为什么重要

对于开发者和企业安全团队而言,误报是影响代码扫描工具采纳率的关键痛点。CodeQL 2.25.5 通过引入 path-injection[read] 接收器类型,区分只读和危险路径,从源头减少了 Java 和 C++ 查询中的误报。同时,对 GitHub Actions 的增强检测(如分析 action.yml)填补了 CI/CD 安全盲区,有助于发现供应链攻击风险。

对谁有价值

开发者:直接受益于更少的误报,节省排查时间,更快定位真实漏洞。
安全工程师:获得更可靠的检测结果,可更精准地制定修复优先级。
DevOps 团队:通过 GitHub Actions 的扩展分析,强化 CI/CD 管道的安全基线。

可以怎么行动

• 升级 CodeQL 到 2.25.5(自动部署用户无需操作,GHES 用户可手动升级)。
• 评估新查询对现有代码库的影响,特别是 path-injection[read]actions/unpinned-tag 规则。
• 结合 GitHub code scanning 的告警进行复盘,调整安全策略。

风险或限制

新版本可能引入新的误报模式,需注意验证。同时,GHES 3.22 以下版本需手动升级,可能中断自动扫描流程。此外,对复合动作元数据的分析仍局限于 action.ymlaction.yaml,其他配置方式暂不支持。

信息差价值

信息差价值:多数开发者仅关注 GitHub Actions 工作流本身,而 CodeQL 2.25.5 对复合动作元数据的解析能力,揭示了安全检测从前端 CI 配置深入到底层执行逻辑的趋势。这一更新未被大众广泛讨论,提前了解可帮助团队建立先发优势。

业务启发:对于提供 CI/CD 工具或安全服务的团队,可借鉴 GitHub 的做法,通过细化接收器类型和扩展分析目标,提升自身产品的差异化竞争力。同时,减少误报的策略(如区分只读与危险路径)可被复用于其他安全产品。

可沉淀动作:将 CodeQL 2.25.5 的更新点整理成内部安全检查清单,优先对涉及 GitHub Actions 和文件读取的代码库进行扫描。定期追踪官方 changelog,建立版本更新响应机制,确保安全工具始终处于最佳状态。

参考来源

上一篇 趋势解读:Claude company Anthropic nears a trillion-dollar valuation after,提升开发者接入体验 下一篇 Grok Build 0.2.7 发布,新增多项功能