Skip to content

Commit 09ed677

Browse files
committed
Upload sarif if available
1 parent d3ee367 commit 09ed677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
path: '**/build/reports/**'
3535

3636
- name: Upload Code Scanning code analysis report
37-
if: always()
37+
if: ${{ hashFiles('build/reports/detekt/main.sarif') != '' }}
3838
uses: github/codeql-action/upload-sarif@v3
3939
with:
4040
sarif_file: 'build/reports/detekt/main.sarif'

0 commit comments

Comments
 (0)