dieuhd / sonar-quality-gate

Quality Code Gate for Gitlab and Github
MIT License
38 stars 9 forks source link

Getting error with version when trying to run the action #40

Closed omri-ratson closed 1 year ago

omri-ratson commented 1 year ago

Hello @dieuhd, When I'm trying to run the action I get this error from our CLI: image I'm also getting a similar error from the GitHub action: image

When searching for this error online I found these issues/fixes: issue - https://github.com/salsita/node-pg-migrate/issues/863 resolved by - https://github.com/salsita/node-pg-migrate/commit/e2255778393359bba113aafec19aa471b7dfedaf issue - https://github.com/AppThreat/cdxgen/issues/83 resolved by - https://github.com/AppThreat/cdxgen/commit/2e032248a23221d71f45942ef2ff41b740919b4d

I'm not sure why this is happening since I'm unfamiliar with Node configuration on that level. I can't share with you my parameters for the run command since it has secrets but I do know they are working because I tried them with another Sonar GitHub action and they are working, I prefer to use yours if it's possible.

dieuhd commented 1 year ago

@omri-ratson Sorry i reply late.

JcCadet62 commented 1 year ago

same error

The first error: you are not install sonar-scanner The second error: you are not install java Can you confirm that?

sonar-scanner installed you are not install java : JDK installed

dieuhd commented 1 year ago

You can reference config: https://github.com/dieuhd/sonar-quality-gate#add-sonar-projectproperties and result: #48