answered from live GitHub & Hugging Face data

How can I use gitsign to ensure my AI coding agent's commits are signed and verified?

MaintActive · 3d ago
Stars1.1k
Releasev0.18.018d ago
Contrib40
Issues36 open
MaintActive · 3d ago
Stars95
Releasev1.4.09d ago
Contrib42
Issues9 open

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

Set up gitsign for the agent's repository

  1. Install gitsign. The README gives brew install gitsign or go install github.com/sigstore/gitsign@latest.
  2. 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
    
  3. Use --global in place of --local only if every repository should use gitsign.
  4. Check that the agent can complete the OIDC login. The default issuer is https://oauth2.sigstore.dev/auth and the default client ID is sigstore. The README says that signing with these settings makes commits depend on internet access.

Verification on GitHub

Two problems for agents

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

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.

github.com/sigstore/gitsigndocs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verificationgithub.com/lewis6991/gitsigns.nvimgithub.com/xero/evangelion.nvimgithub.com/calind/selenized.nvimgithub.com/purarue/gitsigns-yadm.nvimdocs.github.com/en/authentication/managing-commit-signature-verification/signing-commitsdocs.github.com/en/authentication/troubleshooting-commit-signature-verification/checking-your-commit-and-tag-signature-verification-statusgithub.com/sigstore/sigstore-go
Answered live from GitHub & Hugging Face · anthropic/claude-haiku-5.5 · 11/8/2026

Ask your own open-source question →