Skip to content

Commit 916780a

Browse files
committed
Fix codeql CLI path
1 parent b067309 commit 916780a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/csv-coverage-timeseries.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v2
1818
with:
1919
path: codeqlModels
20+
fetch-depth: 0
2021
- name: Set up Python 3.8
2122
uses: actions/setup-python@v2
2223
with:
@@ -32,7 +33,9 @@ jobs:
3233
run: unzip -d codeql-cli codeql-linux64.zip
3334
- name: Build modeled package list
3435
run: |
35-
PATH="$PATH:codeql-cli/codeql" python script/misc/scripts/library-coverage/generate-timeseries.py codeqlModels
36+
CLI=$(realpath "codeql-cli/codeql")
37+
echo $CLI
38+
PATH="$PATH:$CLI" python script/misc/scripts/library-coverage/generate-timeseries.py codeqlModels
3639
- name: Upload timeseries CSV
3740
uses: actions/upload-artifact@v2
3841
with:

misc/scripts/library-coverage/generate-timeseries.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ def get_packages(lang, query):
6666
working_dir = ""
6767
if len(sys.argv) > 1:
6868
working_dir = sys.argv[1]
69+
else:
70+
print("Working directory is not specified")
71+
exit(1)
6972

7073
configs = [
7174
utils.LanguageConfig(

0 commit comments

Comments
 (0)