-
Notifications
You must be signed in to change notification settings - Fork 277
38 lines (31 loc) · 895 Bytes
/
Copy pathphpmd.yml
File metadata and controls
38 lines (31 loc) · 895 Bytes
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
name: PHPMD
on:
push:
branches: [ "develop", "master" ]
pull_request:
branches: [ "develop", "master" ]
permissions:
contents: read
jobs:
PHPMD:
name: Run PHPMD scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: '${{ secrets.CI_USER_TOKEN_MATECATBOT || github.token }}'
- name: Setup PHP project
uses: ./.github/actions/setup-php-project
- name: Run PHPMD
run: ./vendor/bin/phpmd ./lib/ sarif codesize --reportfile phpmd-results.sarif
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: phpmd-results.sarif
wait-for-processing: true