We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32f5b5a commit 971b0a9Copy full SHA for 971b0a9
gh-codeql
@@ -95,7 +95,7 @@ fi
95
function download() {
96
local version="$1"
97
if [ -z "$version" ] || [ "$version" = "latest" ]; then
98
- version=$(gh api "repos/$repo/releases/latest" --jq '.tag_name')
+ version=$(gh api "repos/$repo/releases" --paginate --jq '.[].tag_name' | sort -V | tail -1)
99
fi
100
if [ -x "$rootdir/dist/$channel/$version/codeql" ] ; then
101
# Already downloaded.
0 commit comments