-
Notifications
You must be signed in to change notification settings - Fork 814
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
Always run Sonar scan against the master branch #921
Conversation
I think we need to check the branch name ( |
It would also be nice if the step "SonarCloud / Scan (push)" in the master of forked projects is skipped, as this always fails otherwise.
|
@@ -44,4 +44,4 @@ jobs: | |||
- env: | |||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |||
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} | |||
run: mvn -B -V -Pcoverage -DskipAssembly verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar --no-transfer-progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you removed -B
b/c of https://stackoverflow.com/a/23659360 and semi-redundant --no-transfer-progress
?
@lukaszlenart Maybe rebase with master and give it another try? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use java-version: 21
on L:42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks promising. I would love to give it a try after the merge.
One last thing: @lukaszlenart any idea how to address #921 (comment) b/c every fork also has a master branch but no sonar credentials ( |
Isn't already addressed with this
|
It doesn't seem to work. The step in this run is executed in my fork, but I don't understand why. |
What about now? |
Happy to try it after merge.
|
I got a green build. Thank you so much. |
No description provided.