I´m trying to access a GH repository stored in a GH Enterprise org with SSO enabled.
I can access it and created a PAT with my user and a Global credential in Jenkins using the PAT as usual.
But after that, when I try to create a pipeline using the remote repo, I receive the following error message:
The PAT has the following scopes selected:
- repo
- workflow
- write:packages
- admin:repo_hook
- project
Usually, only the repo scope should be enough. I checked the other ones in case it could fix the issue, but no success.
I followed the same steps I used in other pipelines created from GH.
In fact, I´m trying to move a repo stored in the GH free license GH to this GH Enterprise org. I can clone the repo from the GH website, but Jenkins cannot access it to create the pipeline in the same way we did for the free license repo.
Any help on this issue?