GitLab Authenticated Users Generate Invalid Project Analysis Tokens In Some Cases

We recently got GitLab authentication working with SonarQube and are trying to migrate off of LDAP authenticated users. However, we ran into a major stumbling block: newly created Project Analysis tokens are inconsistently valid.

I’ve tried deleting and recreating tokens using various settings, but I have yet to find anything that consistently generated a token SonarQube will accept as valid.

GitLab must have been caching tokens somewhere. Solution I found was:

  1. Delete the old SONAR_TOKEN
  2. Create a new SONAR_TOKEN that is hidden but not masked
  3. Delete the new SONAR_TOKEN
  4. Create a new SONAR_TOKEN that is hidden and masked.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.