Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Forbidden Error unrelated to PATs/Permissions #1245

Open
martleung opened this issue May 9, 2024 · 1 comment
Open

403 Forbidden Error unrelated to PATs/Permissions #1245

martleung opened this issue May 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@martleung
Copy link

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

@martleung martleung added the bug Something isn't working label May 9, 2024
@martleung
Copy link
Author

Quick update on the above. The issue was found to be due to a newly introduced requirement for the source PAT to require admin:org (as opposed to read:org which was working 2-3 weeks ago).

I noticed that the GitHub documentation just got updated to indicate the need to use admin:org against the source PAT - so no further action required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant