Skip to content

Commit 7a9e41c

Browse files
committed
QL: split out analysis of each CodeQL language
1 parent f44f337 commit 7a9e41c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ql-for-ql-build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ jobs:
137137
retention-days: 1
138138
analyze:
139139
runs-on: ubuntu-latest
140+
strategy:
141+
matrix:
142+
folder: [cpp, csharp, java, javascript, python, ql, ruby]
140143

141144
needs:
142145
- package
@@ -163,13 +166,26 @@ jobs:
163166

164167
- name: Checkout repository
165168
uses: actions/checkout@v2
169+
- name: Create CodeQL config file
170+
run: |
171+
echo "paths:" > ${CONF}
172+
echo " - ${{ matrix.folder }}" >> ${CONF}
173+
echo "paths-ignore:" >> ${CONF}
174+
echo " - ql/ql/test" >> ${CONF}
175+
echo "Config file: "
176+
cat ${CONF}
177+
env:
178+
CONF: ./ql-for-ql-config.yml
166179

167180
- name: Initialize CodeQL
168181
uses: github/codeql-action/init@erik-krogh/ql
169182
with:
170183
languages: ql
171184
db-location: ${{ runner.temp }}/db
185+
config-file: ./ql-for-ql-config.yml
172186

173187
- name: Perform CodeQL Analysis
174188
uses: github/codeql-action/analyze@erik-krogh/ql
189+
with:
190+
category: "ql-for-ql-${{ matrix.folder }}"
175191

0 commit comments

Comments
 (0)