File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 4141 - name : Create database
4242 run : |
4343 codeql database create \
44- --search-path "${{ github.workspace }}/ruby" \
44+ --search-path "${{ github.workspace }}/ruby/extractor-pack " \
4545 --threads 4 \
4646 --language ruby --source-root "${{ github.workspace }}/repo" \
4747 "${{ runner.temp }}/database"
Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ jobs:
3232 - uses : ./ruby/actions/create-extractor-pack
3333 - name : Run QL tests
3434 run : |
35- codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test
35+ codeql test run --search-path "${{ github.workspace }}/ruby/extractor-pack" -- check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test
3636 env :
3737 GITHUB_TOKEN : ${{ github.token }}
3838 - name : Check QL formatting
3939 run : find ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 codeql query format --check-only
4040 - name : Check QL compilation
4141 run : |
42- codeql query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}/ruby" --additional-packs "${{ github.workspace }}" "ql/src" "ql/examples"
42+ codeql query compile --check-only --threads=4 --warnings=error "ql/src" "ql/examples"
4343 env :
4444 GITHUB_TOKEN : ${{ github.token }}
4545 - name : Check DB upgrade scripts
Original file line number Diff line number Diff line change @@ -67,5 +67,4 @@ extractor: $(FILES) $(BIN_FILES)
6767 cp target/release/ruby-autobuilder$(EXE ) extractor-pack/tools/$(CODEQL_PLATFORM ) /autobuilder$(EXE )
6868
6969test : extractor dbscheme
70- codeql pack install ql/test
71- codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path . --consistency-queries ql/consistency-queries ql/test
70+ codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path extractor-pack --consistency-queries ql/consistency-queries ql/test
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ codeql database create <database-path> -l ruby -s <project-source-path> --search
3939Run
4040
4141``` bash
42- codeql test run < test-path> --search-path < repository-root -path>
42+ codeql test run < test-path> --search-path < extractor-pack -path>
4343```
4444
4545## Writing database upgrade scripts
You can’t perform that action at this time.
0 commit comments