github / github/codeql

Feature: compare results from two databases

Đang mở
#8,767 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

**Description of the issue**

I am newbie to CodeQL.

My current process of creating database an extracting results follows:

```bash
#!/bin/bash
set -e

export CODEQL_SCAN_ID=$(date "+%Y%m%d-%H%M%S")

printf "CodeQL Scan ID: ${CODEQL_SCAN_ID}\n";

mkdir -p $HOME/.local/codeql/databases
cd $HOME/.local/codeql/databases
codeql database create \
--language="go" \
--source-root="${GOPATH}/src/github.com/greenpau/go-authcrunch" \
-- ./go-authcrunch-${CODEQL_SCAN_ID}

cd $HOME/.local/codeql
codeql database run-queries --ram=5922 --threads=2 --verbose \
--additional-packs . \
-- ./databases/go-authcrunch-${CODEQL_SCAN_ID} \
./queries-go/ql/src/codeql-suites/go-code-scanning.qls

cd $HOME/.local/codeql
mkdir -p ./results/go-authcrunch
codeql database interpret-results --format csv \
--output ./results/go-authcrunch/codeql_results_${CODEQL_SCAN_ID}.csv \
-- ./databases/go-authcrunch-${CODEQL_SCAN_ID}

printf "CodeQL Scan Results: "`pwd`"/results/go-authcrunch/codeql_results_${CODEQL_SCAN_ID}.csv\n"
```

I want to compare results from two versions of database for the same package, i.e. `go-authcrunch`.

As I am working through fixing issues, I want to be able to gauge whether my changes fix issues.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.