We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2baa0 commit bb96019Copy full SHA for bb96019
.github/workflows/update-codeql.yml
@@ -44,6 +44,14 @@ jobs:
44
45
# Get latest release from codeql-cli-binaries
46
latest_tag=$(gh release list --repo github/codeql-cli-binaries --json 'tagName,isLatest' --jq '.[] | select(.isLatest == true) | .tagName')
47
+
48
+ # Validate that we found a latest release
49
+ if [ -z "${latest_tag}" ]; then
50
+ echo "❌ Error: Could not determine latest CodeQL CLI version from github/codeql-cli-binaries" >&2
51
+ echo "No release marked as 'latest' was found. This may indicate an API issue or repository change." >&2
52
+ exit 1
53
+ fi
54
55
latest_clean="${latest_tag#v}"
56
57
echo "Current CodeQL CLI version: ${current_version}"
0 commit comments