Skip to content

Commit 76cc056

Browse files
committed
Apex Code Scanning Example
1 parent 6a1f853 commit 76cc056

File tree

2 files changed

+11
-86
lines changed

2 files changed

+11
-86
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

.github/workflows/pmd.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11

22

3-
name: Pmd-Scan
4-
on: [push]
3+
name: PMD_Apex_CodeScanning
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
9+
pull_request:
10+
branches: [ main ]
11+
512
jobs:
613
apex:
714
permissions:
@@ -11,14 +18,14 @@ jobs:
1118
runs-on: ubuntu-latest
1219
steps:
1320
- name: Checkout code
14-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
1522
with:
1623
fetch-depth: 0
1724
- name: Setup PMD
1825
uses: legetz/setup-pmd@7.0.0-rc3
1926
- name: APEX full scan
2027
run: pmd check --dir ./project-force/pf-app/main/default/classes/*.cls --rulesets ./config/pmd-ruleset.xml --no-fail-on-violation -f sarif -D -r pmd-report.sarif
2128
- name: Upload SARIF file
22-
uses: github/codeql-action/upload-sarif@v2
29+
uses: github/codeql-action/upload-sarif@v3
2330
with:
2431
sarif_file: pmd-report.sarif

0 commit comments

Comments
 (0)