Skip to content

fix: omit repo-level web_commit_signoff_required when org-enforced - #96

Merged
NWarila merged 1 commit into
mainfrom
fix/web-commit-signoff-omit-when-org-enforced
Jul 21, 2026
Merged

fix: omit repo-level web_commit_signoff_required when org-enforced#96
NWarila merged 1 commit into
mainfrom
fix/web-commit-signoff-omit-when-org-enforced

Conversation

@NWarila

@NWarila NWarila commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

GitHub 422s Commit signoff is enforced by the organization and cannot be disabled on ANY repo-level write of web_commit_signoff_required once the org enforces it — which aborted the repo apply before rulesets/branch config were created. Every new repo hit this (it left nwarila-platform/secure-wazuh with no rulesets/CODEOWNERS).

Resolve the repo-level value to null (omit) when the org enforces it, else respect the repo level (explicit YAML value, or the null default). Org enforcement is the single source of truth; a repo may still set it explicitly.

  • 30-locals.tf: conditional omit (null-safe for personal mode).
  • test updated; full suite: 93 passed, 0 failed.

GitHub returns 422 "Commit signoff is enforced by the organization and cannot be
disabled" on ANY repo-level write of web_commit_signoff_required once the org
enforces it — aborting the repo apply before its rulesets/branch config are
created, so every new repo failed to get governed. Resolve the repo-level value
to null (omit) when the org enforces it, else respect the repo level (explicit
YAML value, or the null default). Org enforcement is the single source of truth.

Fixes the 422 that left nwarila-platform/secure-wazuh without rulesets/CODEOWNERS.
@NWarila
NWarila merged commit 78c7beb into main Jul 21, 2026
13 checks passed
@NWarila
NWarila deleted the fix/web-commit-signoff-omit-when-org-enforced branch July 21, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant