Skip to content

Commit bd064b7

Browse files
Copilotdata-douser
andauthored
Fix codeql-path-test workflow: ensure gh-codeql extension installation succeeds (#34)
* Initial plan * Fix codeql-path-test job by ensuring gh codeql extension is properly installed and verified Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
1 parent 1e10e1f commit bd064b7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/client-integration-tests.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,20 @@ jobs:
192192
CODEQL_VERSION=$(tr -d '[:space:]' < .codeql-version | sed 's/^v//')
193193
echo "Installing CodeQL CLI version: $CODEQL_VERSION"
194194
195-
gh extension install github/gh-codeql 2>/dev/null || true
195+
# Check if the gh-codeql extension is already installed
196+
if ! gh extension list | grep -q "github/gh-codeql"; then
197+
echo "Installing gh-codeql extension..."
198+
gh extension install github/gh-codeql
199+
else
200+
echo "gh-codeql extension is already installed"
201+
fi
202+
203+
# Verify the extension is available before using it
204+
if ! gh codeql version &>/dev/null; then
205+
echo "::error::gh codeql extension is not working properly"
206+
exit 1
207+
fi
208+
196209
gh codeql set-version "$CODEQL_VERSION"
197210
198211
INSTALLED=$(gh codeql version --format=terse)

0 commit comments

Comments
 (0)