Skip to content

Commit 25182bc

Browse files
authored
Create sarif report when running psalm (#1280)
1 parent d421c41 commit 25182bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/static-analysis.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ jobs:
5858
composer-options: "--no-suggest"
5959

6060
- name: "Run Psalm"
61-
run: "vendor/bin/psalm --show-info=false --stats --output-format=github --threads=$(nproc)"
61+
run: "vendor/bin/psalm --show-info=false --stats --output-format=github --threads=$(nproc) --report=psalm.sarif"
6262

6363
- name: "Run Rector"
6464
run: "vendor/bin/rector --ansi --dry-run"
65+
66+
- name: "Upload Psalm report"
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: psalm.sarif
70+
path: psalm.sarif

0 commit comments

Comments
 (0)