Skip to content

Commit 8e43d62

Browse files
committed
fix: move Roslyn SARIF upload from Sonar_Analysis to ReSharper_Analysis
SonarScanner wrapper overrides ErrorLog MSBuild property, preventing Roslyn SARIF generation. ReSharper_Analysis already builds without SonarScanner wrapping, so ErrorLog works correctly there.
1 parent 935a5ab commit 8e43d62

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/Publish.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@ jobs:
107107
path: .sarif/resharper.sarif
108108
retention-days: 7
109109

110+
- name: Upload Roslyn SARIF artifacts
111+
if: always()
112+
uses: actions/upload-artifact@v4
113+
with:
114+
name: sarif-roslyn
115+
path: |
116+
.sarif/*.sarif
117+
!.sarif/resharper.sarif
118+
retention-days: 7
119+
if-no-files-found: warn
120+
110121
# ==============================================================================
111122
# 2) Snyk Security Scan -> SARIF artifact
112123
# ==============================================================================
@@ -438,20 +449,8 @@ jobs:
438449
path: coverage-merged/
439450
retention-days: 7
440451

441-
- name: List Roslyn SARIF files
442-
if: always()
443-
run: |
444-
echo "Roslyn SARIF files generated (per-project, SARIF 2.1):"
445-
ls -la .sarif/*.sarif 2>/dev/null || echo "No SARIF files found"
446-
447-
- name: Upload Roslyn SARIF Artifacts
448-
if: always()
449-
uses: actions/upload-artifact@v4
450-
with:
451-
name: sarif-roslyn
452-
path: .sarif/*.sarif
453-
retention-days: 7
454-
if-no-files-found: warn
452+
# Roslyn SARIF artifacts are uploaded by ReSharper_Analysis job
453+
# (which builds without SonarScanner wrapper that can suppress ErrorLog output)
455454

456455
# ==============================================================================
457456
# 5) GitHub Code Scanning Upload (SARIF → Security tab)

0 commit comments

Comments
 (0)