forked from PreMiD/Activities
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) 路 941 Bytes
/
Copy pathpmd.yml
File metadata and controls
41 lines (35 loc) 路 941 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
39
40
41
name: Validate
on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group:
types: [checks_requested]
jobs:
pmd:
name: Validate metadata and build
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
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