mitchspano / sfdx-scan-pull-request

Runs sfdx-scanner on a pull request and generates in-line comments with the findings.
Apache License 2.0
71 stars 24 forks source link

Error in Run SFDX Scanner - Report findings as comments #46

Closed bbarlow-knauf closed 1 year ago

bbarlow-knauf commented 1 year ago

Hi I get an error when running this action against my repo.

Here is my YAML file `name: Static Analysis on: pull_request: types: [opened, reopened, synchronize] paths:

jobs: analyze: runs-on: ubuntu-latest steps:

Thanks

mitchspano commented 1 year ago

Hey there - thanks for checking out the action! Version 0.1.8 has some issues 😕 I would recommend upgrading to 0.1.9 and let me know how that works for you.

bbarlow-knauf commented 1 year ago

Hi I upgraded to 0.1.9 like you said and I am still having issues here is the log 4_Run SFDX Scanner - Report findings as comments.txt

mitchspano commented 1 year ago

@bbarlow-knauf I have added some enhanced logging when calling the REST API. Can you please try with 0.1.10 and let me know what you see?

mitchspano commented 1 year ago

@bbarlow-knauf - Are you still experiencing issues with this scan? Please upgrade to v0.1.12 and let me know if the scan is still failing.

Thanks!

bbarlow-knauf commented 1 year ago

Hi @mitchspano I updated to use the latest version. Still getting errors. Attached log Thanks.

sfdx scanner result.txt

mitchspano commented 1 year ago

The error message is included in the output of the log:

The PMD config file ruleset.xml couldn't be found.

It looks like the path to the ruleset file is incorrect, or the ruleset file does not exist.