Skip to content

Commit e821058

Browse files
committed
Fix issue with github/codeql-action/upload-sarif@v3
where multiple runs of the same tool (e.g. through mutliple files) is now considered an error. https://github.blog/changelog/2025-07-21-code-scanning-will-stop-combining-multiple-sarif-runs-uploaded-in-the-same-sarif-file/
1 parent 27e0336 commit e821058

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/Build.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,26 @@ jobs:
140140
name: lint-reports
141141
path: '**/build/reports/lint-results-*.html'
142142

143-
- name: Upload lint reports (SARIF)
144-
if: ${{ !cancelled() && hashFiles('**/*.sarif') != '' }}
143+
- name: Upload lint reports (SARIF) for app module
144+
if: ${{ !cancelled() && hashFiles('app/**/*.sarif') != '' }}
145145
uses: github/codeql-action/upload-sarif@v3
146146
with:
147-
sarif_file: './'
147+
sarif_file: './app/'
148+
category: app
149+
150+
- name: Upload lint reports (SARIF) for app-nia-catalog module
151+
if: ${{ !cancelled() && hashFiles('app-nia-catalog/**/*.sarif') != '' }}
152+
uses: github/codeql-action/upload-sarif@v3
153+
with:
154+
sarif_file: './app-nia-catalog/'
155+
category: app-nia-catalog
156+
157+
- name: Upload lint reports (SARIF) for lint module
158+
if: ${{ !cancelled() && hashFiles('lint/**/*.sarif') != '' }}
159+
uses: github/codeql-action/upload-sarif@v3
160+
with:
161+
sarif_file: './lint/'
162+
category: lint
148163

149164
- name: Check badging
150165
run: ./gradlew :app:checkProdReleaseBadging

0 commit comments

Comments
 (0)