Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for locally installed sfdx plugin to speed up scanner step #65

Open
leojok-fluido opened this issue Aug 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@leojok-fluido
Copy link

My project installs all dependent sfdx and sfdx plugins first using yarn install --frozen-lockfile and then GHA will create cache from node_modules allowing faster pipelines to be built. package.json has defined "@salesforce/sfdx-scanner": "3.15.0"

Maybe code should set SFDX_DATA_DIR prior calling npx sfdx scanner:run so that it would not install plugin again?

SFDX_DATA_DIR="$(pwd)" npx sfdx scanner:run --pmdconfig config/pmd-rules.xml --target "force-app/main/default/classes/*.cls" --json

Logs:

Run mitchspano/[email protected]
Beginning sfdx-scan-pull-request run...
Validating that this action was invoked from an acceptable context...
Performing static code analysis on all of the relevant files...
npx sfdx scanner:run --pmdconfig config/pmd-rules.xml --target "force-app/main/default/classes/*.cls" --json
You acknowledge and agree that the CLI tool may collect usage information, user environment, and crash reports for the purposes of providing services or functions that are relevant to use of the CLI tool and product improvements.

Installing plugin @salesforce/sfdx-scanner...
Installing plugin @salesforce/sfdx-scanner...
@mitchspano mitchspano added the enhancement New feature or request label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants