Skip to content

Commit 6c9cbe7

Browse files
authored
Update .github/workflows/update-codeql.yml
Use the gh release list command.
1 parent 6b1502e commit 6c9cbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update-codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
echo "Checking latest CodeQL CLI version"
2626
current_version=$(jq .CodeQLCLI qlt.conf.json -r)
27-
latest_version=$(curl -s https://api.github.com/repos/github/codeql-cli-binaries/releases/latest | jq -r .tag_name)
27+
latest_version=$(gh release list --repo github/codeql-cli-binaries --json 'tagName,isLatest' --jq '.[] | select(.isLatest == true) | .tagName')
2828
echo "Current CodeQL CLI version: $current_version"
2929
echo "Latest CodeQL CLI version: $latest_version"
3030

0 commit comments

Comments
 (0)