-
Notifications
You must be signed in to change notification settings - Fork 7
75 lines (73 loc) · 2.14 KB
/
analysis-psalm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Psalm analysis
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
paths:
- "service-admin/**"
- "service-api/**"
- "service-front/**"
- "service-pdf/**"
- "shared/**"
jobs:
psalm_all_php_8_2:
name: psalm-scan
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
scan:
- name: service-admin
path: "./service-admin"
- name: service-front
path: "./service-front"
- name: service-api
path: "./service-api"
- name: shared
path: "./shared"
defaults:
run:
working-directory: ${{ matrix.scan.path }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
- name: Composer install
run: composer install --prefer-dist --optimize-autoloader --no-suggest --no-interaction
- name: Run psalm
run: ./vendor/bin/psalm --output-format=github --report=psalm-results.sarif --no-cache
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: ${{ matrix.scan.path }}/psalm-results.sarif
psalm_all_php:
name: psalm-scan
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
scan:
- name: service-pdf
path: "./service-pdf"
defaults:
run:
working-directory: ${{ matrix.scan.path }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
- name: Composer install
run: composer install --prefer-dist --optimize-autoloader --no-suggest --no-interaction
- name: Run psalm
run: ./vendor/bin/psalm --output-format=github --report=psalm-results.sarif
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: ${{ matrix.scan.path }}/psalm-results.sarif