File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 coverage : none
3737 - run : make composer-install psalm-install
3838 - run : make psalm-github
39-
40- psalm-security :
41- name : Psalm (Security)
42- runs-on : ubuntu-latest
43- steps :
44- - uses : actions/checkout@v3
45- - uses : shivammathur/setup-php@v2
46- with :
47- php-version : ' 8.1'
48- coverage : none
49- - name : Psalm
50- uses : docker://vimeo/psalm-github-actions
51- with :
52- security_analysis : true
53- report_file : results.sarif
5439 - name : Upload Security Analysis to Github
5540 uses : github/codeql-action/upload-sarif@v1
5641 with :
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ phpunit.xml
88composer.phar
99/packages.json
1010/.phpunit
11+ /results.sarif
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ psalm-baseline: # Updates the baseline file
5959 XDEBUG_MODE=off $(PHP ) -dxdebug.mode=off $(PSALM ) --update-baseline --set-baseline=$(PSALM_BASELINE_FILE )
6060
6161psalm-github : # used with GitHub
62- XDEBUG_MODE=off $(PHP ) -dxdebug.mode=off $(PSALM ) --long-progress --monochrome --output-format=github
62+ XDEBUG_MODE=off $(PHP ) -dxdebug.mode=off $(PSALM ) --long-progress --monochrome --output-format=github --report=results.sarif
6363
6464psalm-install :
6565 XDEBUG_MODE=off $(COMPOSER ) install --working-dir=tools/psalm --no-interaction --prefer-dist --optimize-autoloader
You can’t perform that action at this time.
0 commit comments