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

Bump SonarSource/sonarcloud-github-action from v1.9 to v2.1.1 #1146

Conversation

stevedlawrence
Copy link
Member

This updates the docker container used to do the scan and should use the support Java 17 version.

Also uses correct capitalization of "SonarSource", maybe this is why dependabot never updated this for us?

This also enables the scan on pull requests. I'm not sure why we enabled it only when merged to main, but the documentation claims it works on PRs too, so lets do that.

DAFFODIL-2856

@stevedlawrence
Copy link
Member Author

For reference, here is the diff of the github action to this current version: SonarSource/sonarcloud-github-action@v1.9.1...v2.1.1

This updates the docker container used to do the scan and should use the
support Java 17 version.

Also uses correct capitalization of "SonarSource", maybe this is why
dependabot never updated this for us?

DAFFODIL-2856
@stevedlawrence stevedlawrence force-pushed the daffodil-2856-update-sonar-cloud-github-action branch from f260e1a to eab7259 Compare January 16, 2024 18:03
@stevedlawrence
Copy link
Member Author

My first commit allowed a scan to run on PR, since the documentation says it's possible. The documentation is correct, however, it leaves out that due to limitations in GitHub actions it will not work from PR's from a forked repo. This is because github actions does not pass secrets to workflows originating from a forked repository to prevent leaking secret. But this means the SONAR_TOKEN secret that is required cannot be passed to the scan. So until SonarCloud comes up with alternative that does not require a secret token, we cannot allow scans on PRs.

Copy link
Contributor

@tuxji tuxji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Thanks for noticing the camel case, that probably was why we didn't get any dependabot PRs.

@tuxji
Copy link
Contributor

tuxji commented Jan 16, 2024

I suggest you approve too and merge, Steve, since this is really a version bump anyway.

Copy link
Member Author

@stevedlawrence stevedlawrence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@stevedlawrence stevedlawrence merged commit e2a1835 into apache:main Jan 16, 2024
10 checks passed
@stevedlawrence stevedlawrence deleted the daffodil-2856-update-sonar-cloud-github-action branch January 16, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants