Skip to content

Commit 6569da0

Browse files
author
Alvaro Muñoz
authored
Merge pull request #17 from GitHubSecurityLab/jorgectf-patch-1
Update build.yml
2 parents af379c9 + 1aa1dd4 commit 6569da0

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,20 @@ jobs:
124124
src:
125125
- '${{ matrix.language }}/ext-library-sources/**'
126126
127+
- name: Initialize CodeQL
128+
if: steps.changes.outputs.src == 'true'
129+
run: |
130+
VERSION="$(find "${{ runner.tool_cache }}/CodeQL/" -maxdepth 1 -mindepth 1 -type d -print \
131+
| sort \
132+
| tail -n 1 \
133+
| tr -d '\n')"
134+
echo "$VERSION/x64/codeql" >> $GITHUB_PATH
135+
127136
- name: Install CodeQL
128137
if: steps.changes.outputs.src == 'true'
129138
env:
130139
GITHUB_TOKEN: ${{ github.token }}
131140
run: |
132-
gh extension install github/gh-codeql
133-
gh codeql pack install "${{ matrix.language }}/ext-library-sources/"
134-
gh codeql pack create "${{ matrix.language }}/ext-library-sources/"
141+
codeql pack install "${{ matrix.language }}/ext-library-sources/"
142+
codeql pack create "${{ matrix.language }}/ext-library-sources/"
135143

0 commit comments

Comments
 (0)