Skip to content

Commit ba0fbfa

Browse files
Copilotdata-douser
andcommitted
Fix copilot-setup-steps workflow to add codeql and qlt to PATH
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
1 parent 147ea77 commit ba0fbfa

File tree

1 file changed

+35
-7
lines changed

1 file changed

+35
-7
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,50 @@ jobs:
4545
echo "-----------------------------"
4646
echo "CodeQL Home: $QLT_CODEQL_HOME"
4747
echo "CodeQL Binary: $QLT_CODEQL_PATH"
48+
49+
# Add CodeQL to PATH for subsequent steps
50+
if [[ -n "$QLT_CODEQL_HOME" ]]; then
51+
echo "$QLT_CODEQL_HOME" >> "$GITHUB_PATH"
52+
echo "✅ Added CodeQL to PATH: $QLT_CODEQL_HOME"
53+
else
54+
echo "❌ QLT_CODEQL_HOME not set"
55+
exit 1
56+
fi
57+
58+
- name: Verify CLI Tools in PATH
59+
shell: bash
60+
run: |
61+
echo "Verifying CLI tools are available in PATH:"
62+
63+
if ! command -v qlt >/dev/null 2>&1; then
64+
echo "❌ qlt not found in PATH"
65+
exit 1
66+
fi
67+
echo "✅ qlt is available: $(which qlt)"
68+
69+
if ! command -v codeql >/dev/null 2>&1; then
70+
echo "❌ codeql not found in PATH"
71+
exit 1
72+
fi
73+
echo "✅ codeql is available: $(which codeql)"
4874
4975
- name: Verify Versions of Tooling
5076
shell: bash
5177
run: |
52-
echo -e "Checking CodeQL Version:"
53-
$QLT_CODEQL_PATH --version
78+
echo "Checking CodeQL Version:"
79+
codeql --version
5480
55-
echo -e "Checking QLT Version:"
81+
echo "Checking QLT Version:"
5682
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"
5783
qlt version
5884
5985
- name: Install QL Packs
6086
shell: bash
6187
run: |
6288
echo "Installing QL pack dependencies"
63-
qlt codeql run pack install --no-strict-mode javascript/frameworks/cap
64-
qlt codeql run pack install --no-strict-mode javascript/frameworks/ui5
65-
qlt codeql run pack install --no-strict-mode javascript/frameworks/xsjs
89+
codeql pack install --no-strict-mode javascript/frameworks/cap
90+
codeql pack install --no-strict-mode javascript/frameworks/ui5
91+
codeql pack install --no-strict-mode javascript/frameworks/xsjs
6692
6793
- name: Setup Node.js for CDS Extractor
6894
uses: actions/setup-node@v4
@@ -90,7 +116,9 @@ jobs:
90116
run: |
91117
echo "✅ Setup complete and verified:"
92118
echo " - QLT installed: $(qlt version)"
93-
echo " - CodeQL installed: $($QLT_CODEQL_PATH --version)"
119+
echo " - QLT in PATH: $(which qlt)"
120+
echo " - CodeQL installed: $(codeql --version | head -1)"
121+
echo " - CodeQL in PATH: $(which codeql)"
94122
echo " - Node.js: $(node --version)"
95123
echo " - npm: $(npm --version)"
96124
echo " - CDS extractor built successfully"

0 commit comments

Comments
 (0)