Skip to content

Commit 55f8ea7

Browse files
authored
Merge pull request #603 from linear-b/repo-access-help
add troubleshoot
2 parents a0d1441 + 99fd0ed commit 55f8ea7

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed
86 KB
Loading

docs/troubleshooting.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Check that you see gitStream app on repository's Settings > GitHub apps:
1313
In case you don't see it, visit the marketplace and install it for free: https://github.com/marketplace/gitstream-by-linearb
1414

1515
#### Did you set the workflow files correctly?
16-
Check you have placed these two files in your repository with these exact names:
16+
Check you have placed these two files in your repository with these exact names:
1717

1818
1. `gitstream.cm` in the `cm` repo, (for org level installs), or `.cm/gitstream.cm` on all other repositories
1919
2. `.github/workflows/gitstream.yml`
@@ -40,12 +40,22 @@ to the **Allow specified actions and reusable workflows** list, if it is shown.
4040
![GitHub allow marketplace actions](screenshots/github_settings_allow_specified_actions
4141
.png)
4242

43+
#### Adding new repo? Make sure to enable gitStream for it
44+
45+
1. Go to https://github.com/apps/gitstream-cm and then
46+
2. click the `Configure` button
47+
3. If you see organization selection, choose the relevant org
48+
4. Scroll down to `Repository access`
49+
5. Make sure the repo you want is covered, i.e. either `All repositories` is checked or the repo is checked in the `Only select repositories` list
50+
51+
![GitHub repository access](screenshots/github_repository_access.png)
52+
4353
#### Using org level? Did you enable gitStream for your `cm` repo
4454

4555
Make sure you have added the `cm` repo to the repos gitStream should run on
4656
![GitHub cm repo](screenshots/repo_in_org_setup.png)
4757
#### Are you using the default runners along with the "IP allow list" feature on GitHub?
48-
<a href="https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#using-github-actions-with-an-ip-allow-list" target="_blank">According to GitHub</a>, in order to use GitHub actions with the allow list, you must use self-hosted runners or GitHub-hosted larger runners with static IP address ranges and add their IP to the allow list.
58+
<a href="https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#using-github-actions-with-an-ip-allow-list" target="_blank">According to GitHub</a>, in order to use GitHub actions with the allow list, you must use self-hosted runners or GitHub-hosted larger runners with static IP address ranges and add their IP to the allow list.
4959

5060
When using GitHub's default runners, you will encounter the following error: "The repository owner has an IP allow list enabled, and [IP] is not permitted to access this repository," which indicates that GitHub is blocking the action. You can verify if the IP is part of GitHub's CIDR ranges by using the following <a href="https://api.github.com/meta" target="_blank">list</a>
5161

@@ -59,8 +69,8 @@ This error indicates that gitStream is unable to locate the file `.github/workfl
5969

6070
## I have rules that should have blocked merge, but the PR can be merged still
6171

62-
For example, when using the [`set-required-approvals`](/automation-actions#set-required-approvals)
63-
action, gitStream can ensure the PR got enough approvals before it can be merged. gitStream does that
72+
For example, when using the [`set-required-approvals`](/automation-actions#set-required-approvals)
73+
action, gitStream can ensure the PR got enough approvals before it can be merged. gitStream does that
6474
by running as a check and marking the check conclusion as failed. In order for the PR to be blocked, gitStream should be set as a required check in the repo: [instructions here](/github-installation#github-merge-block).
6575

6676
![Merge enabled](screenshots/merge-enabled-example.png)
@@ -69,7 +79,7 @@ by running as a check and marking the check conclusion as failed. In order for t
6979

7080
In order for gitStream to be listed as a required check, it needs to be triggered at least once in that repo. First create a new PR so gitStream is triggered.
7181

72-
Check it under repository's Settings > Branches:
82+
Check it under repository's Settings > Branches:
7383

7484
![Branch protection rules](screenshots/branch_protection_in_github.png)
7585

@@ -79,7 +89,7 @@ Check it under repository's Settings > Branches:
7989

8090
When using repository level rules, you can edit the `.github/workflows/gitstream.yml` and uncomment the `if` line, you can edit and replace the bot name with the bot name you want to ignore (`dependabot[bot]` in the example below).
8191

82-
!!! note
92+
!!! note
8393

8494
This will not work for org level rules
8595

0 commit comments

Comments
 (0)