Skip to content

Commit d6968bb

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

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/part_test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,13 @@ 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: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
142+
with:
143+
name: Psalm SARIF file
144+
path: results.sarif
145+
retention-days: 5
140146

141147
php-cs:
142148
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)