github / github/codeql

[Rust] Including dependencies in the analysis

未關閉
#20,534 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question Rust
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

Hi, is there any way to include cargo dependencies within the generated dbs? Right now im generating it like this

```bash
codeql database create rust-db \
--language=rust \
--source-root . \
--command "cargo build --all-targets --all-features" \
--extractor-option rust.cargo_all_targets=true \
--extractor-option rust.extract_dependencies_as_source=true \
--overwrite
```

But my queries still dont seem to go down into my dependecies

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing the listed `codeql database create` command with the Rust extractor options and checking whether queries traverse the generated database's dependencies. Done means Rust cargo dependencies are included in the database analysis as requested.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust
領域
security
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。