From 916780a4528eccb3ec3bfad93326d54202518768 Mon Sep 17 00:00:00 2001 From: Tamas Vajk Date: Thu, 10 Jun 2021 13:53:00 +0200 Subject: [PATCH] Fix codeql CLI path --- .github/workflows/csv-coverage-timeseries.yml | 5 ++++- misc/scripts/library-coverage/generate-timeseries.py | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/csv-coverage-timeseries.yml b/.github/workflows/csv-coverage-timeseries.yml index 42f00d6bbae..99e7c18d604 100644 --- a/.github/workflows/csv-coverage-timeseries.yml +++ b/.github/workflows/csv-coverage-timeseries.yml @@ -17,6 +17,7 @@ jobs: uses: actions/checkout@v2 with: path: codeqlModels + fetch-depth: 0 - name: Set up Python 3.8 uses: actions/setup-python@v2 with: @@ -32,7 +33,9 @@ jobs: run: unzip -d codeql-cli codeql-linux64.zip - name: Build modeled package list run: | - PATH="$PATH:codeql-cli/codeql" python script/misc/scripts/library-coverage/generate-timeseries.py codeqlModels + CLI=$(realpath "codeql-cli/codeql") + echo $CLI + PATH="$PATH:$CLI" python script/misc/scripts/library-coverage/generate-timeseries.py codeqlModels - name: Upload timeseries CSV uses: actions/upload-artifact@v2 with: diff --git a/misc/scripts/library-coverage/generate-timeseries.py b/misc/scripts/library-coverage/generate-timeseries.py index 8bd745f561d..a05b0ae298c 100644 --- a/misc/scripts/library-coverage/generate-timeseries.py +++ b/misc/scripts/library-coverage/generate-timeseries.py @@ -66,6 +66,9 @@ def get_packages(lang, query): working_dir = "" if len(sys.argv) > 1: working_dir = sys.argv[1] +else: + print("Working directory is not specified") + exit(1) configs = [ utils.LanguageConfig(