Overview
If CircleCI is not able to build when a branch is created or updates are pushed to a pull request, first of all, please check the GitHub WebHook deliveries as this might help in discovering why a push to your repo has not resulted in a job on CircleCI.
Solution
If you are seeing the response 400 in spite of having the read/write/admin access to the repository, then this means that your secret generated by GH for the webhook is no longer present, or possible expired. To address this, first please try
- Signing out of Github in your browser
- Signing out of CircleCI
- Then logging back into CircleCI via Github.
If that does not work, then the secret is no longer present. You can also follow the below steps to make CircleCI generate a new webhook, with a secret:
- Unfollow the project from the CircleCI ‘Project settings’ page - click the ‘Unfollow’ button
- Remove the webhook for the affected repo on GitHub (Settings > Webhooks and services)
- Re-add the project by following the project again on the CircleCI ‘Project settings’ page
This should resolve your issue.
Comments
Article is closed for comments.