You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: 5.43 upgrade failing due to signoff issues #2077
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 []
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
Reacted by Toby Archer, Kurt Azzopardi, Davide Attard, Jan-Hendrik Peters, Felix Wenzel, Johan-Kees Vliek, Patrick Herrera, Marcel Richter, Jordan Evans, dzmitry-lahoda and 32 more
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.
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 requestrepoReq.WebCommitSignoffRequired=nil
}
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
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.
Activity
nnellanspdl commentedon Jan 9, 2024
I know it's not a fix, but ignoring that field might be a workaround for now?
nyanhp commentedon Jan 23, 2024
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.
brunooon commentedon Jan 23, 2024
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.
Disallow github update to 5.43
mrclrchtr commentedon Mar 6, 2024
Same here... 😕 with version 6.0.0
Only for initial creation I think.
maroshvarchola commentedon Apr 2, 2024
Same here, using pulumi/github
maroshvarchola commentedon Apr 2, 2024
@iwahbe FYI
bzarboni1 commentedon Apr 5, 2024
We've been running into this issue today as well, but I haven't changed the
web_commit_signoff_requiredparameter at all (I'm updating the setting ofadvanced_securitytotrue). 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:
web_commit_signoff_requiredparameter is sent by the provider for any change to the repository. This should be harmless / inert, except that:true/enabledand the provider sendsweb_commit_signoff_required=true,organizationis enabled/set totrue(which overrides therepository'ssetting on GitHub).I've modified the provider locally, with a bit of a hack, that sets the
web_commit_signoff_requiredtoNil(if the setting wasn't changed), before we send the request to the github module/API. It resolved the issue for us.Inserted into:
resource_github_repository.go:resourceGithubRepositoryUpdate:763Unless the GitHub API is fixed (I'd say this is a bug on their end), maybe this could be the workaround.
14 remaining items
steveteuber commentedon Oct 24, 2025
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
brunom-lexipol commentedon Nov 6, 2025
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
steveteuber commentedon Nov 14, 2025
My pull request #2763 was merged successfully! 🎉
But currently it worked only when there are changes to the
web_commit_signoff_requiredfield as well...I will create another pull request today to fix this issue.
feat(tf): import core repos and upgrade github provider