SonarQube Community Build | DevOps platform integration | GitHub integration | Setting up integration at global level | Setting parameters for GitHub Actions
Setting parameters used by GitHub Actions
You can define at the global level the parameters used in GitHub Actions workflows to connect to the SonarQube Community Build (Server URL and token). To do so, you use GitHub secrets at the organization level: 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 Community Build instance.
Storing the authentication token in GitHub at the global level
- In the SonarQube Community Build UI, generate a SonarQube Community Build 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 Community Build URL in GitHub at the global level
Create an organization secret in GitHub with:
- Name: SONAR_HOST_URL
- Value: SonarQube Community Build URL.
Was this page helpful?