aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs/src/pages/integrations/github.md
blob: ec2977932fd164a524f295066c4fc7ad30a0b696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
title: Integration with GitHub
scope: sonarcloud
---

## Authentication

You can connect to SonarCloud using your GitHub account. On the [login page](/#sonarcloud#/sessions/new), just click on the "Log in with GitHub" button.

## Trigger analyses

SonarCloud currently does not trigger analyses automatically. It's up to you to launch them inside your
existing CI scripts. Please follow the [tutorial](/#sonarcloud#/onboarding) to get started.

If you are using Travis CI, the SonarCloud Travis Add-on will make it easier to activate analyses. Simply follow
the [guide to integrating with Travis CI](https://docs.travis-ci.com/user/sonarcloud/).

## Activating pull request decoration

To have your pull requests decorated by SonarCloud in GitHub, you need to [install the SonarCloud application](https://github.com/apps/sonarcloud) on your GitHub organization(s).

Once installed, there is nothing more to do if you are using the Travis Add-on. In any other case, you will need
to pass the following properties in your script during the analysis:

```
sonar.pullrequest.base=master
sonar.pullrequest.branch=feature/my-new-feature
sonar.pullrequest.key=5
sonar.pullrequest.provider=GitHub
sonar.pullrequest.github.repository=my-company/my-repo
```