GitHub plugin
For more information about what this plugin does and the data streams it retrieves, see:
Monitor the Incidents, Issues and Pull Requests from your GitHub environment.
This data source indexes an organization and repositories for a given organization name. You can also retrieve private repositories if you add a personal access token (optional).
To add a data source click on the + next to Data Sources on the left-hand menu in SquaredUp. Search for the data source and click on it to open the Configure data source page.
Before you start
Generate a Personal Access Token
In order to add a GitHub data source in SquaredUp, you need to provide a personal access token, generated in GitHub.
GitHub offers both 'Fine-grained' tokens and 'Classic' tokens. A 'Fine-grained' token should be used because this allows minimal read-only access to the required data.
To generate a fine-grained personal access token:
- In GitHub, navigate to Settings > Developer settings > Personal access tokens > Fine-grained tokens.
- Click Generate new token.
- Provide a Token name, Expiration date and description for the token.
- Set the Resource owner to an organization if you need to access private repositories owned by an organization. If you use a personal access token in SquaredUp with a user set as the resource owner, SquaredUp will only be able to access private repositories owned by that user.
You may need to first allow access via fine-grained personal access tokens for your organization before you can set it as the resource owner.
- Select Public, All or Only Select repositories from Repository Access, depending on your needs.
- Grant Read-only access for the appropriate Account permissions. Currently, the plugin requires the following minimum permissions to function:
- Issues
- Metadata
- Pull requests
- Click 'Generate token'
- Copy the token before closing the page.
You may need an admin to approve the token before it can gain full access to repositories, depending on your organization's security policy.
Configuring the data source
- Enter your organization name.
- Optionally, provide a personal access token to retrieve private repositories.
Restrict access to this data source:
You can enable this option if you only want certain users or groups to have access to the data source, or the permission to link it to new workspaces. See data source access control for more information.The term data source here really means data source instance. For example, a user may configure two instances of the AWS data source, one for their development environment and one for production. In that case, each data source instance has its own access control settings.
By default, Restrict access to this data source is set to off. The data source can be viewed, edited and administered by anyone. If you would like to control who has access to this data source, switch Restrict access to this data source to on.
Use the Restrict access to this data source dropdown to control who has access to the workspace:
- By default, the user setting the permissions for the data source will be given Full Control and the Everyone group will be given Link to workspace permissions.
- Tailor access to the data source, as required, by selecting individual users or user groups from the dropdown and giving them Link to workspace or Full Control permissions.
- If the user is not available from the dropdown, you are able to invite them to the data source by typing in their email address and then clicking Add. The new user will then receive an email inviting them to create an account on SquaredUp. Once the account has been created, they will gain access to the organization.
- At least one user or group must be given Full Control.
- Admin users can edit the configuration, modify the Access Control List (ACL) and delete the data source, regardless of the ACL chosen.
See Access control for more information.
Click Add.
You can also add a data source from Settings > Data Sources > Add data source, but sample dashboards are not added when using this method.