Organisations should require signed commits for any code that can influence build, release, or production systems. The stricter the environment, the less acceptable unsigned changes become, especially when AI tools or automation can create code faster than humans can inspect it. Signed commits should be a baseline, not an exception.
Why This Matters for Security Teams
Signed commits become essential once code can reach production through build pipelines, release automation, or AI-assisted development. In those paths, the commit is not just a collaboration artifact; it is evidence of author intent and a control point for traceability. Without signatures, teams lose confidence that the person or system that claimed to make the change actually did so, which weakens incident response, auditability, and release approval. The issue is more urgent when secrets, infrastructure definitions, or deployment logic live in the same repositories as application code. NHI Mgmt Group research shows that Ultimate Guide to NHIs — The NHI Market identifies widespread secret sprawl and weak identity governance across modern environments.
Current guidance from NIST Cybersecurity Framework 2.0 and broader software supply chain practice supports stronger provenance for high-impact changes, even though there is no universal standard that says every repository must enforce signing. The practical threshold is simple: if an unsigned change could influence a build, release, or deployment decision, the organisation has already accepted avoidable risk. In practice, many security teams encounter commit integrity failures only after an incident review shows the pipeline trusted the wrong change, rather than through intentional release governance.
How It Works in Practice
The usual control pattern is to require signature verification on protected branches and release branches, then combine that with branch protection, review approval, and CI/CD policy checks. That means the platform rejects commits that do not have a trusted signature from an approved identity, and it also rejects merges if the signature cannot be validated against the organisation’s trust store. For teams using GitHub, GitLab, or similar platforms, this is often paired with rules that block direct pushes to production-bound branches and force all changes through pull or merge requests.
For stronger supply chain control, signing should cover both humans and automation. Developers can sign commits with hardware-backed keys or managed developer identities, while automation can sign from build bots or release pipelines using dedicated workload identities. That is where the NHI lens matters: if an agent, bot, or CI process is allowed to write code or alter manifests, it needs a verifiable identity and bounded authority. This aligns with the identity and rotation themes discussed in Ultimate Guide to NHIs — The NHI Market and with the broader control objectives in NIST Cybersecurity Framework 2.0.
- Require signatures on all commits that can enter protected branches.
- Separate human signing keys from CI or release signing identities.
- Enforce key ownership, rotation, and revocation so trust does not outlive employment or system changes.
- Verify signatures in the pipeline, not just in developer tooling.
- Log signature validation failures as security events, not as routine merge noise.
Where possible, tie signing policy to repository classification: production, infrastructure-as-code, secrets handling, and deployment automation should have the strictest rules. These controls tend to break down when legacy workflows rely on ad hoc hotfixes or when emergency changes bypass the normal merge path because the signature policy was not designed into the exception process.
Common Variations and Edge Cases
Tighter commit-signing policy often increases developer friction, requiring organisations to balance release speed against assurance. That tradeoff is real, especially for smaller teams, but current guidance suggests the answer is not to relax signing for critical paths; it is to make signing easier and exceptions rarer. Best practice is evolving toward differentiated enforcement, where production-bound repositories are strict and low-risk sandboxes remain flexible.
There are a few common edge cases. First, signed commits are only as useful as the trust model behind them. If keys are shared, poorly protected, or rarely revoked, the control looks stronger than it is. Second, signed commits do not replace review, testing, or pipeline attestation. They only prove that a change came from a trusted identity and was not silently altered afterward. Third, automation can complicate the model: if an AI coding agent generates changes, the organisation must decide whether the agent signs directly, whether a human reviews and signs, or whether the build system signs the merged result. That decision should be explicit and policy-driven, not left to convenience.
For teams building agentic or highly automated delivery flows, Ultimate Guide to NHIs — The NHI Market is useful context for treating bots and pipelines as governed identities rather than tooling details. The same principle applies to zero trust and software provenance in NIST Cybersecurity Framework 2.0: trust should be explicit, verifiable, and continuously checked. Where organisations ship from ephemeral developer containers, throwaway test branches, or vendor-managed build agents, signed commits alone are not enough because the identity chain behind the signature may be too weak or too transient to support meaningful assurance.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Signed commits help prove which NHI or user authored production-bound changes. |
| NIST CSF 2.0 | PR.AC-4 | Commit signing supports controlled access and least privilege in release workflows. |
| NIST AI RMF | AI-assisted coding needs governance for provenance and accountable change control. |
Require trusted signing for production-bound changes and revoke untrusted signing identities fast.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on May 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org