answered from live GitHub & Hugging Face data
How can I use gitsign to ensure my AI coding agent's commits are signed and verified?
Use gitsign to prove a human's identity on a commit, not to prove an agent's identity. gitsign signs with a short-lived certificate tied to an OIDC login, so an agent's commits show the human's login unless you change the setup.
Gitsign project status
- ✅ sigstore/gitsign is actively maintained. It was last pushed 3 days ago, has 40 contributors, and latest release v0.18.0 came out in October 2026. It has 36 open issues.
- ⚠️ Its license is listed as NOASSERTION, so GitHub did not detect a standard license. Check the license file before you use it in a commercial setting. This is not legal advice.
- The companion library sigstore/sigstore-go is Apache-2.0, pushed 3 days ago, and has 42 contributors.
Set up gitsign for the agent's repository
- Install gitsign. The README gives
brew install gitsignorgo install github.com/sigstore/gitsign@latest. - Run these commands in the repository. They set gitsign as the signer for that repository only:
git config --local gpg.x509.program gitsign git config --local gpg.format x509 git config --local commit.gpgsign true - Use
--globalin place of--localonly if every repository should use gitsign. - Check that the agent can complete the OIDC login. The default issuer is
https://oauth2.sigstore.dev/authand the default client ID issigstore. The README says that signing with these settings makes commits depend on internet access.
Verification on GitHub
- GitHub's documentation lists GPG, SSH and S/MIME as the formats it verifies. It does not list gitsign. A gitsign commit may show as Unverified on GitHub. I could not confirm how GitHub displays it.
- Git features that rewrite commits remove the signature. The docs say that Rebase and Merge adds commits "without commit signature verification." Rebase locally and push, or use another merge method.
Two problems for agents
- Identity: The default flow signs with the human's OIDC login. The commit then proves that the human's login signed it. It does not name the agent.
- Headless use: The gitsign README I read is truncated. I could not confirm how a headless agent gets an OIDC token without a browser. Test this in your environment before you rely on it.
A simpler option for GitHub-hosted agents
If the agent commits through GitHub's API and authenticates as a GitHub App, GitHub verifies the commit as a bot. The docs say: "Signature verification for bots will only work if the request is verified and authenticated as the GitHub App or bot and contains no custom author information, custom committer information, and no custom signature information, such as Commits API." Use this path if you want GitHub to show the commit as Verified.
How they relate
gitsign and GitHub's bot signing solve different problems. gitsign proves who ran the signing step, through an OIDC login. GitHub's bot signing proves that a named GitHub App made the commit. Pick one per agent, based on whether you need a human or an agent as the accountable signer.
Recommendation
- Choose gitsign if a human approves each signing session, and you need a Sigstore record that ties the commit to that human's login.
- Choose a GitHub App if agents push to GitHub without a human present, and you want GitHub to show Verified.
- Choose both if you need the bot identity on GitHub and a separate Sigstore record of the human who ran the agent.
If you want a separate identity for each agent, with commits traced to the accountable human, githug provides this now. Its agent commits carry trailers that name the human, the agent and the run. Each agent's key attests what it pushed, and you can check commits at githug.ai/v.