Skip to content

Instantly share code, notes, and snippets.

@by-nari
Last active December 25, 2024 12:55
Show Gist options
  • Save by-nari/641630881a867b97d05b38d1775b6850 to your computer and use it in GitHub Desktop.
Save by-nari/641630881a867b97d05b38d1775b6850 to your computer and use it in GitHub Desktop.
1Password commit signing inside devcontainers

Please read this guide again https://developer.1password.com/docs/ssh/git-commit-signing/

Make sure you don't have gpg.ssh.program field in your ~/.gitconfig

Make sure your ~/.ssh/config has this:

Host *
  IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"

One more thing, export SSH_AUTH_SOCK in your .zshrc

export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock

In case you got the op-ssh-sign not found error before reading this gist then remove gpg.ssh.program from ~/.gitconfig in your container. Good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment