Skip to content

Commit d3f5faa

Browse files
committed
Setup Psalm Sarif Exporter
1 parent 1d1ad2d commit d3f5faa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/part_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ jobs:
136136
- name: Install Deps
137137
run: composer install --prefer-dist
138138
- name: Run Psalm
139-
run: composer run test:lint
139+
run: composer run test:lint -- --report=results.sarif
140+
- name: "Upload SARIF"
141+
uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3
142+
with:
143+
sarif_file: results.sarif
140144

141145
php-cs:
142146
name: Run PHP-CS

results.sarif

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":"2.1.0","$schema":"https:\/\/json.schemastore.org\/sarif-2.1.0.json","runs":[{"tool":{"driver":{"name":"Psalm","informationUri":"https:\/\/psalm.dev","version":"5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0"}},"results":[]}]}

0 commit comments

Comments
 (0)