-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 909 Bytes
/
PHPMD.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
name: PHP Mess Detector
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
permissions:
contents: read
jobs:
PHPMD:
name: Run PHPMD scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@2.31.1
with:
php-version: 8.3
coverage: none
tools: phpmd:2.15
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Run PHPMD
run: phpmd . sarif phpmd.xml --reportfile phpmd-results.sarif
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3.27.0
with:
sarif_file: phpmd-results.sarif
wait-for-processing: true