You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
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:
Setting environment variables from .travis.yml
$ export GITHUB_SECRET_TOKEN=[secure]
The previous command failed, possibly due to a malformed secure environment variable.
Please be sure to escape special characters such as ' ' and '$'.
For more information, see https://docs.travis-ci.com/user/encryption-keys.
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*[email protected]/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
The text was updated successfully, but these errors were encountered:
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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*[email protected]/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
The text was updated successfully, but these errors were encountered: