github / github/gh-gei

403 Forbidden Error unrelated to PATs/Permissions

Open
#1,245 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
478
Forks
146
Avg merge
7d 21h
Merged PRs (30d)
2

Description

## Description

We are facing the below error when using the GitHub GEI to migrate repositories between GHEC to GHEMU.
 
`Git source migration failed. Error message: the server responded with status 403 Error class: Faraday::ForbiddenError.`

We have validated the PAT for both the source org in GHEC and the target org in GHEMU. This included checking the scope and that it's been SSO authorised - even tested these PATs by performing GH CLI commands against the respective orgs.
 
We are quite certain the issue is in relation to GEI service connecting to the source GHEC/org as the blank repository is being created in the target GHEMU. We have checked IP Allowlist is not enabled within GHEC.

Can further details be provided on the below error?

## Reproduction Steps
Run the command `gh gei migrate-repo --github-source-org SOURCE_ORG --source-repo SOURCE_REPO --github-target-org TARGET_ORG --verbose`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.