Open TrueFinch opened 5 years ago
Found solution. Using such command to encrypt token gives valid key:
travis encrypt -r KappaTych/ci_test GITHUB_SECRET_TOKEN="token"
But I still do not understand how to set this variable in the repository settings :(
This is how I put it in travis.yml:
env:
- secure: "key"
Am I right that this way to store key is not very good? Cause everybody can just get on our repository travis site and get this key. Sounds not very good fo me. Please correct me, if I am wrong.
This command
travis encrypt -r user/repo 'GITHUB_SECRET_TOKEN=<your token>'
generated wrong keys for me. In console i've got something like that:This is my travis.yml:
Also tried to set key through environment variables on the site, but it did not work too and throw such exception:
fatal: unable to access 'https://*generated key here*=@github.com/kappatych/ci_test/': Could not resolve host: *part of generated key here*
Maybe this is my fault. I do not understand why is this happening