Skip to content

Commit

Permalink
Create sarif report when running psalm (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus authored Apr 17, 2024
1 parent d421c41 commit 25182bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ jobs:
composer-options: "--no-suggest"

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

- name: "Run Rector"
run: "vendor/bin/rector --ansi --dry-run"

- name: "Upload Psalm report"
uses: actions/upload-artifact@v4
with:
name: psalm.sarif
path: psalm.sarif

0 comments on commit 25182bc

Please sign in to comment.