Skip to content

Commit f79bbbe

Browse files
committed
security analysis
1 parent dd2eb94 commit f79bbbe

3 files changed

Lines changed: 2 additions & 16 deletions

File tree

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,6 @@ jobs:
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:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ phpunit.xml
88
composer.phar
99
/packages.json
1010
/.phpunit
11+
/results.sarif

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

6161
psalm-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

6464
psalm-install:
6565
XDEBUG_MODE=off $(COMPOSER) install --working-dir=tools/psalm --no-interaction --prefer-dist --optimize-autoloader

0 commit comments

Comments
 (0)