Skip to content

Commit 9cd9638

Browse files
committed
Install codeql packs in "Run analysis report tests" workflow
1 parent 8398907 commit 9cd9638

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.codeqlmanifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "provide": [ "cpp/*/src/qlpack.yml", "cpp/*/test/qlpack.yml", "c/*/src/qlpack.yml", "c/*/test/qlpack.yml" ] }
1+
{ "provide": [ "cpp/*/src/qlpack.yml", "cpp/*/test/qlpack.yml", "c/*/src/qlpack.yml", "c/*/test/qlpack.yml", "scripts/generate_modules/queries/qlpack.yml" ] }

.github/workflows/tooling-unit-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ jobs:
6464
codeql-home: ${{ github.workspace }}/codeql_home
6565
add-to-path: false
6666

67+
- name: Install CodeQL packs
68+
uses: ./.github/actions/install-codeql-packs
69+
with:
70+
cli_path: ${{ github.workspace }}/codeql_home/codeql
71+
6772
- name: Run PyTest
6873
env:
6974
CODEQL_HOME: ${{ github.workspace }}/codeql_home

scripts/reports/deviations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, database_path, repo_root):
4242
# Get a list of deviations
4343
print("Running the deviation query...")
4444
self.codeql_summary.codeql.run_queries(
45-
database_path, *query_paths, search_path=str(repo_root), no_rerun=True)
45+
database_path, *query_paths, no_rerun=True)
4646

4747
print("Decoding deviation query results")
4848

scripts/reports/diagnostics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, database_path, repo_root):
4444
# Run all the diagnostics over the database
4545
print("Running the diagnostic queries...")
4646
self.codeql_summary.codeql.run_queries(
47-
database_path, *queries, search_path=str(repo_root), no_rerun=True)
47+
database_path, *queries, no_rerun=True)
4848

4949
print("Decoding diagnostic query results")
5050
self.extraction_errors = self.codeql_summary.codeql.decode_results(

scripts/reports/guideline_recategorizations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, database_path, repo_root):
4040
# Get a list of guideline recategorizations
4141
print("Running the guideline recategorizations queries...")
4242
self.codeql_summary.codeql.run_queries(
43-
database_path, *query_paths, search_path=str(repo_root), no_rerun=True)
43+
database_path, *query_paths, no_rerun=True)
4444

4545
print("Decoding guideline recategorizations queries results")
4646

0 commit comments

Comments
 (0)