Open thomazbron opened 1 month ago
Just found out that changing the order in agent.toml
work as expected (my work key is in another vault):
[[ssh-keys]]
vault = "Born"
[[ssh-keys]]
vault = "Personal"
But now my personal key does not work, seems that only the first entry is being used.
Platform or tool
Github
Desired or expected behavior
Possibility of cloning, fetching and pushing with multiple accounts.
Current behavior
When cloning with one of the accounts it shows that
repository not found
:Relevant log output
.op/plugins/gh.config
gh auth status
return the correct account:op plugin inspect gh
seems correct:Configured Aliases
✔ Alias for "gh" configured ✔ Aliases sourced (/home/thomaz/.config/op/plugins.sh)
Configured Credentials
✔ Configured for directory "/home/thomaz/repos/born": CREDENTIAL TYPE ITEM VAULT GitHub Personal Access Token Github Born Token Born
Host * IdentityAgent ~/.1password/agent.sock
Personal GitHub
Host tnex HostName github.com User git IdentityFile ~/.ssh/tnex.pub IdentitiesOnly yes
Work GitHub
Host born HostName github.com User git IdentityFile ~/.ssh/born.pub IdentitiesOnly yes
.rw------- 80 thomaz 2 Sep 13:33 born.pub .rw------- 262 thomaz 2 Sep 13:34 config .rw------- 828 thomaz 13 Oct 01:43 known_hosts .rw------- 80 thomaz 2 Sep 13:33 tnex.pub
256 SHA256:... Tnex (ED25519) 256 SHA256:... Github Born (ED25519)
op CLI version
2.30.0