Resource not found ({"file":"not found"})

I’m trying to encrypt a token in the .travis.yml file using the command travis encrypt MYVAR --add deploy.api_key --pro re Travis.

Instead I got in console resource not found ({"file":"not found"})

I have installed Travis CLI on my machine. Also I successfully logged in travis from CLI with command travis login --github-token {tokenHere} --com. What am I missing?

Resource not found basically means that Travis isn’t able to find your project. As far as I know, secrets are associated with the project, so Travis needs to find which project are you generating your secrets for. All that said, you’re probably missing the -r flag. Try something like the following:

travis encrypt aws_secret_access_key=very_secret_string -r mygithubusername/reponame --com  
1 Like