Created
September 1, 2025 09:31
-
-
Save syrm/08f14383555e65e8192e255f8eaaf3e8 to your computer and use it in GitHub Desktop.
1Password Git with PAT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [credential] | |
| helper = !~/src/git-1password-credential.sh "login" "Item Name" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| PAT=$(op item get "$2" --field pat --reveal) | |
| cat <<EOF | |
| username=$1 | |
| password=$PAT | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment