-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
39 lines (33 loc) · 896 Bytes
/
pmd.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
name: Validate
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pmd:
name: Validate metadata and build
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
- name: Install pmd
run: npm ci
- name: Validate metadata and build (changed files)
run: npx pmd build --changed --no-kill --validate --sarif
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: pmd-results.sarif
wait-for-processing: true