VSCode doesn't ask for biometrics when pushing a commit.
So there are 2 apps that I use ssh for.
- VSCode (to push code in Github using git)
- Obsidian (for storing my notes in GitHub using git)
Working Scenario (Obsidian)
I make a change in my notes, I commit them and then I push them. I do get prompted for 1Password biometrics authentication to unlock my vault to allow me to use the ssh credentials. Subsequent pushes do not ask me for auth (which is fine because the vault stays open for some time). I can lock the vault and repeat this process. Everything works.
Not Working Scenario (VSCode)
No matter the lock state of 1Password, it doesn't ask me for biometric auth. I am just able to commit and push freely.
I have even set the Git Protocol to ssh in the VSCode settings. I have tried using the GUI as well as the terminal.
What am I doing wrong?
1Password Version: 1Password for Mac 8.10.9 (81009046)
Extension Version: Not Provided
OS Version: macOS Ventura 13.5
Browser: Not Provided
Comments
-
EDIT: tried to use git in terminal on both the git repos
The obsidian repo asks for unlocking 1Password vault.
The VScode repo still doesn't ask for unlocking 1Password vault.This leads me to believe that the apps are not the issue here, it is the git repos. But I can't seem to think of anything that would do this. Each git repo is similarly configured in GitHub. Please advise.
0 -
Never mind, I was using https remote instead of ssh for the problem repo. Removed that and added ssh remote repo and now it works as designed.
0 -
@ptw Glad you were able to figure it out! As an additional note: if you completely switched over to SSH, you may want to consider also removing your GitHub HTTPS credentials from the Git credential helper by running the following command:
echo "protocol=https\nhost=github.com" | git credential-osxkeychain erase
0 -
Thanks for the advice 🤝
0