When I run this command to encrypt my GitHub API key:
wlaw@localhost:~/px$ travis encrypt --add env --override --org GITHUB_TOKEN=c8978b8442e7d57b231f8ce64b3581750af7566b
(don’t worry, I already invalidated that key)
It does not recognize the key in the build:
https://travis-ci.com/wheelerlaw/px/builds/109622593
Since your repository is on travis-ci.com, you’ll need to use the --com
option with travis encrypt
i.e.
travis encrypt --add env --override --com GITHUB_TOKEN=c8978b8442e7d57b231f8ce64b3581750af7566b
Could you try this out and let us know if it helps?
Thanks!
Yes, that appeared to be the issue. Using --com
appeared to solve the issue.
1 Like