SQSCANGHA-101 Add more input injection tests#200
Conversation
ae5237d to
03037ab
Compare
21d1af5 to
28a1a1a
Compare
28a1a1a to
940c3a5
Compare
940c3a5 to
67117d0
Compare
bdd71f8 to
a9a17d3
Compare
| set -euo pipefail | ||
|
|
||
| # run the sonar scanner cli | ||
| cmd=(${GITHUB_ACTION_PATH}/scripts/run-sonar-scanner-cli.sh "${INPUT_ARGS}") |
There was a problem hiding this comment.
@aleksandra-bozhinoska-sonarsource @antoine-vinot-sonarsource
This generates error when used in combination with additional quotes:
ie:
INPUT_ARGS: -Dsonar.projectKey=prefix_$(basename "org/repo") -Dsonar.branch.name=branch -Dsonar.scm.provider=git
It generates the following command:
sonar-scanner '-Dsonar.projectKey=prefix_$(basename' '"org/repo"' ')' -Dsonar.branch.name=branch -Dsonar.scm.provider=git
Error:
11:01:03.882 ERROR Unrecognized option: "org/repo"
|
This changes generates errors on the
Produces error: It worked fine in v5.3.0 |
Hello @kronenthaler, can you try removing the double quotes and pass the arg like |
|
Hi @aleksandra-bozhinoska-sonarsource, is there an specific topic in the forum related to this change/issue? |
Not that I am aware of @kronenthaler - feel free to open a new one if my suggestion above did not help. |
|
@aleksandra-bozhinoska-sonarsource Thanks, i have made a report and a sample project. Linked here for cross-reference: https://community.sonarsource.com/t/sonarqube-scan-action-v5-3-1-is-broken/147965 |
|
Any particular reason the use of sonarqube-scan-action/action.yml Line 51 in 5837ebf is trusted while |
SQSCANGHA-101
Please be aware that we are not actively looking for feature contributions. The truth is that it's extremely difficult for someone outside SonarSource to comply with our roadmap and expectations. Therefore, we typically only accept minor cosmetic changes and typo fixes. If you would like to see a new feature, please create a new thread in the forum "Suggest new features".
With that in mind, if you would like to submit a code contribution, make sure that you adhere to the following guidelines and all tests are passing:
We will try to give you feedback on your contribution as quickly as possible.
Thank You!
The SonarSource Team