I'm trying to delete an automatically start of my CodePipeline in AWS.
My code is hosted in GitHub and the first step in my Pipeline is getting the source from there.
Every push to the branch that was configured in the Pipeline is triggering a new pipeline execution.
How can I remove this Webhook?
I try
If your reason to remove the webhook is because you want manual control over when changes are deployed to production then I'd strongly recommend adding a manual approval rather than removing the webhook.
If you still want to remove the webhook then deleting it on GitHub should be enough. Another option is to delete it from the CodePipeline side which can be done by calling the list-webhooks API to find the webhook then delete-webhook to delete it.
If your pipeline is still starting automatically then you probably still have polling enabled rather than webhooks. To disable it you need to set the PollForSourceChanges flag to false on the source action.
I found a possible solution here, the solution was to use the Github API and list all the webhooks with that
https://developer.github.com/v3/repos/hooks/#list-hooks
After this I fount the webhook that was triggering the pipeline and I removed it using:
https://developer.github.com/v3/repos/hooks/#delete-a-hook
But still not working?? Right!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.