Hi,
I would like to do some testing that relies on my person GitHub token which should be stored in osxkeychain. I can do it by git "credential-osxkeychain" store
, but it appears that on Travis CI even I set it, git will still use another token, which I believe is set by Travis CI before my script is run.
I tried to do a echo "host=github.com\\nprotocol=https" | git credential-osxkeychain get
to check if there are any GitHub tokens set beforehand by Travis CI. But nothing shows up. Same command run on my laptop shows my GitHub Token.
Can anyone here give me some explanation on some internals of how Travis CI store the GitHub token? git config(local and global) shows that credential.helper=osxkeychain
. So I am really confused as to why I don’t see any GitHub tokens stored in the keychain.
Some other workarounds will also be appreciated.