Skip to content

Commit 817f874

Browse files
aibaarsDave Bartolomeo
authored andcommitted
Fix build
1 parent 17fc6ab commit 817f874

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
GITHUB_TOKEN: ${{ github.token }}
8383
- name: Build Query Pack
8484
run: |
85+
codeql/codeql pack create ql/lib --output target/packs
86+
codeql/codeql pack install ql/src
8587
codeql/codeql pack create ql/src --output target/packs
8688
PACK_FOLDER=$(readlink -f target/packs/codeql/ruby-queries/*)
8789
codeql/codeql generate query-help --format=sarifv2.1.0 --output="${PACK_FOLDER}/rules.sarif" ql/src
@@ -209,21 +211,15 @@ jobs:
209211
extractor: ruby
210212
tests: .
211213
' > qlpack.yml
212-
echo '- qlpack: codeql-ruby
213-
- include:
214-
kind:
215-
- problem
216-
- path-problem
217-
' > suite.qls
218214
- name: Run QL test
219215
shell: bash
220216
run: |
221-
"${{ runner.temp }}/codeql/codeql" test run --search-path "${{ runner.temp }}/ruby-bundle" .
217+
"${{ runner.temp }}/codeql/codeql" test run --search-path "${{ runner.temp }}/ruby-bundle" --additional-packs "${{ runner.temp }}/ruby-bundle" .
222218
- name: Create database
223219
shell: bash
224220
run: |
225221
"${{ runner.temp }}/codeql/codeql" database create --search-path "${{ runner.temp }}/ruby-bundle" --language ruby --source-root . ../database
226222
- name: Analyze database
227223
shell: bash
228224
run: |
229-
"${{ runner.temp }}/codeql/codeql" database analyze --search-path "${{ runner.temp }}/ruby-bundle" --format=sarifv2.1.0 --output=out.sarif ../database suite.qls
225+
"${{ runner.temp }}/codeql/codeql" database analyze --search-path "${{ runner.temp }}/ruby-bundle" --format=sarifv2.1.0 --output=out.sarif ../database ruby-code-scanning.qls

.github/workflows/qltest.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,15 @@ jobs:
3131
- name: Build Extractor
3232
run: env "PATH=$PATH:${{ github.workspace }}/codeql" scripts/create-extractor-pack.sh
3333
- name: Run QL tests
34-
run: codeql/codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}" --consistency-queries ql/consistency-queries ql/test
34+
run: |
35+
codeql/codeql pack install ql/test
36+
codeql/codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}" --consistency-queries ql/consistency-queries ql/test
3537
- name: Check QL formatting
3638
run: find ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 codeql/codeql query format --check-only
3739
- name: Check QL compilation
38-
run: codeql/codeql query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}" "ql/src" "ql/examples"
40+
run: |
41+
codeql/codeql pack install ql/src
42+
codeql/codeql query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}" "ql/src" "ql/examples"
3943
- name: Check DB upgrade scripts
4044
run: |
4145
echo >empty.trap

0 commit comments

Comments
 (0)