IBM Support

500 error on the github repo webhook deliveries

Troubleshooting


Problem

Sometimes, when we make changes to the github repo, the changes are not picked by HCP Terraform workspace and when we check the webhooks on the github repo, we see a red triangle on the webhook with 500 response status as shown in the screenshot below:

Screenshot 2026-02-11 at 11.23.03 PM.png

Screenshot 2026-02-11 at 11.23.25 PM.png

Probable Cause

This error most probably occurs because the secret configured for the webhook is changed manually. When you navigate to Repo settings >> Webhooks , there is a button to change secret as visible in the screenshot below:

Screenshot 2026-02-11 at 11.56.56 PM.png

If the secret configured for this webhook is changed manually, this could result in 500 response error {"errors":["signature does not match"],"success":false}

Solution

The solution in this case would be to reconfigure the VCS connection and then associate the workspace with the new VCS connection. This could also be resolved much easily by following below steps:

  • Go to the affected HC Terraform Workspace settings
  • Click on Version Control
  • Click on Change Source >> Choose CLI Driven Workflow >> Click on button Update VCS Settings
  • Again click on Connect to Version Control button >> Choose Version Control Workflow >> Choose the VCS connection
  • Select the repository and click on Update VCS Settings

Once above steps are completed, the connection will get refreshed and webhooks will work as expected with 200 response:

Screenshot 2026-02-12 at 12.08.10 AM.png

We should never change the secret configured for the webhook manually.

 

Note: If you continue to experience issues, please contact HashiCorp Support.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSTYDYO","label":"IBM Terraform"},"ARM Category":[{"code":"","label":""}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Historical Number

49040263315987

Document Information

Modified date:
17 March 2026

UID

ibm17263890