Skip to content

[BUG]: 5.43 upgrade failing due to signoff issues #2077

Closed

Description

@mattklein123

Expected Behavior

Just got the 5.43 upgrade and I'm seeing failures like:

Error: PATCH https://api.github.com/repos/***: 422 Commit signoff is enforced by the organization and cannot be disabled []

I assume this is somehow due to https://github.com/integrations/terraform-provider-github/pull/2007/files. I've tried manually adding web_commit_signoff_required but this still seems to fail:

 # module.***.github_repository.repo will be updated in-place
  ~ resource "github_repository" "repo" {
      + web_commit_signoff_required = true
        # (35 unchanged attributes hidden)
    }

Is this related to something else or is there something else I should be doing here? Thank you.

Actual Behavior

Doesn't fail / backwards compatible.

Terraform Version

1.2.6, 5.43

Affected Resource(s)

  • github_repository (I think)

Terraform Configuration Files

No response

Steps to Reproduce

No response

Debug Output

No response

Panic Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Status: Triage
    Type: Bug
    on Jan 4, 2024
  2. added
    Status: Up for grabs
    and removed
    Status: Triage
    on Jan 5, 2024
  3. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Jan 5, 2024
  4. nnellanspdl commented on Jan 9, 2024

    @nnellanspdl

    I know it's not a fix, but ignoring that field might be a workaround for now?

    resource "github_repository" "repo" {
      lifecycle {
        ignore_changes = [
          web_commit_signoff_required
        ]
      }
    }
  5. nyanhp commented on Jan 23, 2024

    @nyanhp

    I know it's not a fix, but ignoring that field might be a workaround for now?

    resource "github_repository" "repo" {
      lifecycle {
        ignore_changes = [
          web_commit_signoff_required
        ]
      }
    }

    Unfortunately, this does not seem to help either. The error also occurs on a completely new deployment, as soon as the repository resource is applied.

  6. brunooon commented on Jan 23, 2024

    @brunooon

    I know it's not a fix, but ignoring that field might be a workaround for now?

    resource "github_repository" "repo" {
      lifecycle {
        ignore_changes = [
          web_commit_signoff_required
        ]
      }
    }

    Unfortunately, this does not seem to help either. The error also occurs on a completely new deployment, as soon as the repository resource is applied.

    I was still facing the same issue, so I had to remove the commit signoff from the org and I'm setting to true only on the repos now, its working so far.

  7. added a commit that references this issue on Feb 5, 2024
  8. mrclrchtr commented on Mar 6, 2024

    @mrclrchtr

    Same here... 😕 with version 6.0.0
    Only for initial creation I think.

  9. maroshvarchola commented on Apr 2, 2024

    @maroshvarchola

    Same here, using pulumi/github

  10. maroshvarchola commented on Apr 2, 2024

    @maroshvarchola
  11. bzarboni1 commented on Apr 5, 2024

    @bzarboni1
    Contributor

    We've been running into this issue today as well, but I haven't changed the web_commit_signoff_required parameter at all (I'm updating the setting of advanced_security to true). I am, however, getting the 422 error listed by the OP.

    I've forked the provider, and thrown a debugger on it, and have been able to tell the following:

    • The web_commit_signoff_required parameter is sent by the provider for any change to the repository. This should be harmless / inert, except that:
    • The GitHub API throws the 422 error when the setting is not changing, from true/enabled and the provider sends web_commit_signoff_required = true,
      • This appears to be happening consistently, when the setting for the organization is enabled/set to true (which overrides the repository's setting on GitHub).

    I've modified the provider locally, with a bit of a hack, that sets the web_commit_signoff_required to Nil (if the setting wasn't changed), before we send the request to the github module/API. It resolved the issue for us.

            // There's a bug in the GitHub 2022-11-28 version, that throws a 422 error
    	// whenever the `web_commit_signoff_required` is set to true, even when it 
    	// is already true.
    	if !d.HasChange("web_commit_signoff_required") && d.Get("web_commit_signoff_required").(bool) {
    		// remove the field from the request
    		repoReq.WebCommitSignoffRequired = nil
    	}

    Inserted into: resource_github_repository.go:resourceGithubRepositoryUpdate:763

    Unless the GitHub API is fixed (I'd say this is a bug on their end), maybe this could be the workaround.

  12. 14 remaining items

  13. steveteuber commented on Oct 24, 2025

    @steveteuber
    Contributor

    Good news, at least for Pulumi users! I've found a workaround for this issue until the provider is fixed.
    You can find it here as a GitHub Gist: https://gist.github.com/steveteuber/ea3982488b89d64d321bbc34757347cc

  14. brunom-lexipol commented on Nov 6, 2025

    @brunom-lexipol

    Any updates on this? We are facing the same issue when creating new repositories. Downgrade to a previous version is not an option since we are some using stuff from newer versions

  15. moved this from Backlog to In Review in Terraform Provideron Nov 10, 2025
  16. moved this from In Review to Backlog in Terraform Provideron Nov 12, 2025
  17. steveteuber commented on Nov 14, 2025

    @steveteuber
    Contributor

    My pull request #2763 was merged successfully! 🎉

    But currently it worked only when there are changes to the web_commit_signoff_required field as well...
    I will create another pull request today to fix this issue.

  18. moved this from Backlog to In Review in Terraform Provideron Nov 19, 2025
  19. moved this from In Review to In Progress in Terraform Provideron Feb 8, 2026
  20. added this to the v6.12.0 Release milestone on Feb 13, 2026
  21. removed
    Status: Up for grabs
    on Feb 20, 2026
  22. moved this from In Progress to Done in Terraform Provideron Feb 23, 2026
  23. moved this from Done to In Progress in Terraform Provideron Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions