From ae7e6ef701c2ea60d94e03c9428232611a9a9569 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Tue, 4 Oct 2022 10:07:04 +0200 Subject: [PATCH] Ruby: update dependencies --- .github/workflows/ruby-build.yml | 5 +++-- ruby/ql/lib/qlpack.lock.yml | 4 +++- ruby/ql/src/qlpack.lock.yml | 2 ++ shared/ssa/codeql-pack.lock.yml | 4 ++++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 shared/ssa/codeql-pack.lock.yml diff --git a/.github/workflows/ruby-build.yml b/.github/workflows/ruby-build.yml index 247d6eb4e63..6124fc535f8 100644 --- a/.github/workflows/ruby-build.yml +++ b/.github/workflows/ruby-build.yml @@ -96,8 +96,8 @@ jobs: - name: Build Query Pack run: | codeql pack create ../shared/ssa --output target/packs + codeql pack create ../misc/suite-helpers --output target/packs codeql pack create ql/lib --output target/packs - codeql pack install ql/src codeql pack create ql/src --output target/packs PACK_FOLDER=$(readlink -f target/packs/codeql/ruby-queries/*) codeql generate query-help --format=sarifv2.1.0 --output="${PACK_FOLDER}/rules.sarif" ql/src @@ -202,13 +202,14 @@ jobs: echo 'name: sample-tests version: 0.0.0 dependencies: - codeql/ruby-all: 0.0.1 + codeql/ruby-all: "*" extractor: ruby tests: . ' > qlpack.yml - name: Run QL test shell: bash run: | + codeql pack install . codeql test run --search-path "${{ runner.temp }}/ruby-bundle" --additional-packs "${{ runner.temp }}/ruby-bundle" . - name: Create database shell: bash diff --git a/ruby/ql/lib/qlpack.lock.yml b/ruby/ql/lib/qlpack.lock.yml index 06dd07fc7dc..8c3e6899826 100644 --- a/ruby/ql/lib/qlpack.lock.yml +++ b/ruby/ql/lib/qlpack.lock.yml @@ -1,4 +1,6 @@ --- -dependencies: {} +dependencies: + codeql/ssa: + version: 0.0.1 compiled: false lockVersion: 1.0.0 diff --git a/ruby/ql/src/qlpack.lock.yml b/ruby/ql/src/qlpack.lock.yml index 0bef0f691a9..bf7793caab1 100644 --- a/ruby/ql/src/qlpack.lock.yml +++ b/ruby/ql/src/qlpack.lock.yml @@ -2,5 +2,7 @@ dependencies: codeql/suite-helpers: version: 0.0.2 + codeql/ssa: + version: 0.0.1 compiled: false lockVersion: 1.0.0 diff --git a/shared/ssa/codeql-pack.lock.yml b/shared/ssa/codeql-pack.lock.yml new file mode 100644 index 00000000000..06dd07fc7dc --- /dev/null +++ b/shared/ssa/codeql-pack.lock.yml @@ -0,0 +1,4 @@ +--- +dependencies: {} +compiled: false +lockVersion: 1.0.0