File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,26 @@ jobs:
24
24
run : |
25
25
gh extensions install .
26
26
27
+ - name : Check automatically installs latest
28
+ shell : bash
29
+ run : |
30
+ LATEST=`gh release list --repo github/codeql-cli-binaries -L 1 | cut -f 3`
31
+
32
+ # Note we need to run a command before trying to parse the output below, or the
33
+ # messages from the download will end up in the JSON that jq tries to parse
34
+ gh codeql version
35
+
36
+ INSTALLED=`gh codeql version --format json | jq -r '.version'`
37
+ if [[ "v$INSTALLED" != $LATEST ]]; then
38
+ echo "::error::Expected latest version of $LATEST to be installed, but found v$INSTALLED"
39
+ exit 1
40
+ fi
41
+
27
42
- name : Check basic functionality
28
43
working-directory : test-resources
29
44
shell : bash
30
45
run : |
46
+ gh codeql set-version 2.6.1
31
47
gh codeql database create -l cpp -s test-repo -c "gcc -o main main.c" test-db
32
48
gh codeql pack install test-pack
33
49
gh codeql database analyze --format=sarif-latest --output=out.sarif test-db test-pack/allExpressions.ql
Original file line number Diff line number Diff line change 1
1
name : test-cpp-querypack
2
2
version : 0.0.1
3
3
dependencies :
4
- codeql/cpp-all : " * "
4
+ codeql/cpp-all : " 0.0.2 "
You can’t perform that action at this time.
0 commit comments