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

Api token support #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bravo2zero
Copy link

@bravo2zero bravo2zero commented Sep 6, 2021

Hi guys,

it seems support for API Token was implemented ages ago, but somehow forgotten to be added to SonarManager. As token support is essential in our case and also requested by this issue here, I decided to add a quick change for that.

Initial plan was to upgrade to most recent blackduck-common version (47.0.1 -> 58.0.2) and update sonarqube-plugin-api as well, but due to lack of documentation and tons of breaking API changes in blackduck-common, I just added property handling for api token configuration to SonarManager.

API Token is configured via sonar.hub.token property. As long as API Token is configured, it will be used for authentication instead of provided username/password credentials.

@bravo2zero bravo2zero mentioned this pull request Sep 6, 2021
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.

None yet

1 participant