Skip to content

Commit 0a8a7a2

Browse files
dbrattliclaude
andcommitted
[CI] Fix SARIF upload failing when reports directory doesn't exist
The analyzer step has continue-on-error, so when it fails the src/reports directory is never created, causing upload-sarif to error. Ensure the directory exists before uploading. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 107814e commit 0a8a7a2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,12 @@ jobs:
274274
run: dotnet msbuild /t:AnalyzeFSharpProject ${{ matrix.project }}
275275
continue-on-error: true
276276

277+
- name: Ensure reports directory exists
278+
if: success() || failure()
279+
run: mkdir -p src/reports
280+
277281
- name: Upload SARIF files
282+
if: success() || failure()
278283
uses: github/codeql-action/upload-sarif@v4
279284
with:
280285
sarif_file: src/reports

0 commit comments

Comments
 (0)