You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However the in script adds the : only if source.password is provided. This causes the curl to prompt for a password.
I believe this can be fixed as below.
if [[ ! -z "${sonar_login}" ]] && [[ "${sonar_login}" != "" ]]; then
sonar_token="${sonar_login}:"
if [[ ! -z "${sonar_password}" ]] && [[ "${sonar_password}" != "" ]]; then
sonar_token+="${sonar_password}"
fi
fi
Let me know, I am willing to create a PR.
The text was updated successfully, but these errors were encountered:
As per sonar documentation, using UserToken does not require a password and the curl command should look like,
curl -u THIS_IS_MY_TOKEN: https://sonarqube.com/api/user_tokens/search
However the
in
script adds the:
only ifsource.password
is provided. This causes the curl to prompt for a password.I believe this can be fixed as below.
Let me know, I am willing to create a PR.
The text was updated successfully, but these errors were encountered: