Skip to content

Commit 77d8deb

Browse files
committed
ci: restrict code analyzer to current recipes
1 parent a07c242 commit 77d8deb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/ci-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
id: run-code-analyzer
8080
uses: forcedotcom/run-code-analyzer@v2
8181
with:
82-
run-arguments: --workspace "force-app/**" --view detail --output-file "sca-results.csv" --config-file "code-analyzer.yml"
82+
run-arguments: --workspace "force-app/main" --view detail --output-file "sca-results.csv" --config-file "code-analyzer.yml"
8383
results-artifact-name: code-analyzer-results
8484
github-token: ${{ github.token }}
8585

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
id: run-code-analyzer
6363
uses: forcedotcom/run-code-analyzer@v2
6464
with:
65-
run-arguments: --workspace "force-app/**" --view detail --output-file "sca-results.csv" --config-file "code-analyzer.yml"
65+
run-arguments: --workspace "force-app/main" --view detail --output-file "sca-results.csv" --config-file "code-analyzer.yml"
6666
results-artifact-name: code-analyzer-results
6767
github-token: ${{ github.token }}
6868

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"url": "git+https://github.com/trailheadapps/agent-script-recipes"
1111
},
1212
"scripts": {
13+
"code-analyzer": "sf code-analyzer run --workspace force-app/main --view detail --output-file \"sca-results.csv\" --config-file \"code-analyzer.yml\"",
1314
"lint": "eslint .",
1415
"test": "npm run test:unit",
1516
"test:unit": "sfdx-lwc-jest",

0 commit comments

Comments
 (0)