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 41
41
- name : Create database
42
42
run : |
43
43
codeql database create \
44
- --search-path "${{ github.workspace }}/ruby" \
44
+ --search-path "${{ github.workspace }}/ruby/extractor-pack " \
45
45
--threads 4 \
46
46
--language ruby --source-root "${{ github.workspace }}/repo" \
47
47
"${{ runner.temp }}/database"
Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ jobs:
32
32
- uses : ./ruby/actions/create-extractor-pack
33
33
- name : Run QL tests
34
34
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
36
36
env :
37
37
GITHUB_TOKEN : ${{ github.token }}
38
38
- name : Check QL formatting
39
39
run : find ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 codeql query format --check-only
40
40
- name : Check QL compilation
41
41
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"
43
43
env :
44
44
GITHUB_TOKEN : ${{ github.token }}
45
45
- name : Check DB upgrade scripts
Original file line number Diff line number Diff line change @@ -67,5 +67,4 @@ extractor: $(FILES) $(BIN_FILES)
67
67
cp target/release/ruby-autobuilder$(EXE ) extractor-pack/tools/$(CODEQL_PLATFORM ) /autobuilder$(EXE )
68
68
69
69
test : 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
39
39
Run
40
40
41
41
``` bash
42
- codeql test run < test-path> --search-path < repository-root -path>
42
+ codeql test run < test-path> --search-path < extractor-pack -path>
43
43
```
44
44
45
45
## Writing database upgrade scripts
You can’t perform that action at this time.
0 commit comments