-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[codepipeline] Insufficient permissions while pulling source from GitHub #8731
Comments
i got the solution from below code
|
Hey @jayakumarselvan , is the Secret you're referencing above for an access token that has read permissions to your GitHub repositories? Like this: |
Yes I given full access to repo. (Full control of private repositories). |
It is working fine. |
I'm glad. Is there anything else we can help you here @jayakumarselvan ? |
Thanks @skinny85 But the thing is need to update document. |
@jayakumarselvan do you mean this part? oauth_token=cdk.SecretValue.secrets_manager("my-github-token"), ? |
Yes. I think |
Well, this depends on how you store your token in SecretsManger. You can store it as PlainText, and it this case Wondering how to make it clear in the docs the difference between the 2 cases. |
…10440) There's been some confusion around how to set `GitHubSourceActionProps`'s `oauthToken` property to a github token that was stored as a JSON key-value pair in Secrets Manager. - Updating the [Github Source](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-codepipeline-actions-readme.html#github) section of the docs to clarify how to do so. Closes #8731 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
_Originally posted by @jayakumarselvan in aws-samples/aws-cdk-examples#307
I'm trying to make pipeline through AWS CDK with python.
That pipeline simply pulling source from GitHub and deploy to S3 bucket.
When I'm deploy the pipeline (like 'cdk deploy cdkabc'), the pipeline is creting.
But trying to release the pipeline, i'm getting error
Insufficient permissions
Unable to connect to the GitHub repository 'reponame'. Use the console to reconnect your pipeline to GitHub.
The I'm editing the source same pipeline through AWS Console and connect to the GitHub. It is working.
Reference code: https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_codepipeline_actions.README.html#github
Kindly share the solution or links to resolve this.
The text was updated successfully, but these errors were encountered: