CodeQL fails to detect rust/insecure-cookie in Rust code
还没有人认领这个 Issue。
评估
调研方向
使用最小 Rust 项目和文档中的代码示例重现该问题,然后运行所示的 codeql database create 和 codeql database analyze 命令。检查 codeql.sarif,并将其结果与预期的 rust/insecure-cookie finding 进行比较;当 finding 被输出时即表示完成。
由索引模型根据 Issue 内容生成。
描述
Steps to reproduce
- Download latest CodeQL bundle (v2.25.4 at the moment).
- Have a minimal Rust project with
rust/insecure-cookiein it (take the code example from the official documentation). - Run the following command in the directory with the Rust project:
codeql database create --build-mode=none --language=rust .codeql-db
codeql database analyze --format=sarifv2.1.0 --output=codeql.sarif .codeql-db
- Look at the produced
codeql.sarif
Expected behavior
results field should have 1 finding with rust/insecure-cookie id.
Actual behavior
results field is empty
Notes
The same codeql version with the same Rust code worked as expected on May 18, 2026, 2:31 PM GMT+9.
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 493
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 44
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/codeql-action 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
github/codeql-action#4052 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4078 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4008 · 9 条评论 ·
-
难度 4/5 3-5 天 新手友好度 52/100
github/codeql-action#3978 · 4 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#3870 · 3 条评论 · 1 个 reaction ·
查看 github/codeql-action 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
-
calcite-components needs triage refactor
难度 2/5 1-3 小时 新手友好度 75/100
Esri/calcite-design-system#15203 ·
-
难度 2/5 1-3 小时 新手友好度 90/100
danielmiessler/LifeOS#2218 ·