Read this blog post for more details.
If you want to generate a temporary access token:
$ fidelius --gh-integration-id=1234 --gh-installation-id=5678 --gh-private-key='/root/fidelius-charm.2018-02-12.private-key.pem'
# will print the token
v1.437ad23ce1a4a71b1f3222bc198de653619a9570
If you want to generate a proper .gitconfig
file:
$ fidelius --gh-integration-id=1234 --gh-installation-id=5678 --gh-private-key='/root/fidelius-charm.2018-02-12.private-key.pem' --git-config-out='/root/.gitconfig'
or if you want to modify an existing .gitconfig
:
$ export GH_TOKEN=$(fidelius --gh-integration-id=1234 --gh-installation-id=5678 --gh-private-key='/root/fidelius-charm.2018-02-12.private-key.pem')
$ git config --global url.https://x-access-token:[email protected]/.insteadOf https://github.com/
Released under Unlicense. Check the LICENSE
for more details.