Setting parameters for GitHub Actions
Defining global-level parameters used in GitHub Actions workflows to connect to SonarQube.
Storing the authentication token in GitHub at the global level
To store sensitive data, use GitHub secrets: see GitHub’s documentation on Encrypted secrets for more information.
A token defined at the global level gives permissions on all projects in the SonarQube Server instance.
Proceed as follows to store the authentication token at the global level:
In the SonarQube Server UI, generate a SonarQube Server token at the global level.
Create an organization secret in GitHub with:
Name: SONAR_TOKEN
Value: the token you generated in the previous step.
Storing the SonarQube Server URL in GitHub at the global level
Create an organization variable in GitHub with:
Name: SONAR_HOST_URL
Value: SonarQube Server URL.
Last updated
Was this helpful?