I have a string (Github token) inside a file and I want this to be accessible via
gitconfig only after I enter my keyring password.
For this I created a file
/secret/token, and then
chmod it to
400. Now I add an entry to git config,
git config --global ghi.token "!echo \"$(sudo cat /secret/ghi_token)\""
But this creates an entry with my token visible in plain text instead. What I want instead is to ask for my password each time a program tries to access this gitconfig entry.