Problem
In HCP Terraform, a run may become stuck in a pending state, waiting indefinitely for a status check from a version control system (VCS) provider. The status check URL will resemble the following format.
https://app.terraform.io/app/[your-organization]/aggregated-commit-statuses/acs-*************
Cause
This issue can occur when an HCP Terraform organization is set to use aggregated commit statuses, but the feature is not fully configured or supported by the VCS provider settings. This mismatch prevents the status from being reported back to HCP Terraform, causing the run to remain pending.
Solutions
Solution 1: Disable Aggregated Commit Statuses
To resolve this issue, disable aggregated commit statuses in your organization's settings and revert to individual status checks.
- Navigate to your organization's settings in the HCP Terraform UI.
- Select Version Control from the settings menu.
-
Under the General tab, locate the Commit Status Delivery setting and select Send individual statuses for each job in a run.
- Click Save settings.
- Cancel any existing runs that are pending and trigger a new run. For pull request-driven workflows, you may need to close and reopen the pull request or push a new commit.
Additional Information
For more details on managing version control provider settings, please refer to the HCP Terraform Organizations documentation.