- Newest
- Most votes
- Most comments
I have exactly the same problem, even after granting all permissions it does not work and I get the message CLIENT_ERROR: authentication required for primary source and source version main
If I select the classic Tokens or oAuth it works. Unfortunately thats not what I would consider as least privilege. Any idea how we get fine-graded tokens to work?
OMG... I have spent days trying to figure out why this wasn't working, thinking it was something wrong with my setup. The fine-grained access token works when using a Github source for CodePipeline, but apparently not when configuring it as a source for a plain CodeBuild.
I cannot get oAuth to show any private GitHub repos, and using the connection is not an option for Codebuild. I've wasted most of the day on this. Codepipeline, but that is not my requirement
Use the github classic tokens instead of the fine grained tokens. Grant the necessary permissions to the repository which you want to use and it will ready to use. Yes fine grained tokens are more secure than the classic one but if you got above error CLIENT_ERROR: authentication required for primary source and source version main than by using the classic tokens will resolve it.
Relevant content
- AWS OFFICIALUpdated 2 months ago
