github / github/codeql

[Rust] Including dependencies in the analysis

オープン
#20,534 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
question Rust
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
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
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。