-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot encrypt a variable when we use the non interactive function #738
Comments
When i use the travis encrypt 'GH_TOKEN=1234' -r patrikx3/redis-ui --add --pro --no-interactive it actually removes the variable... and show as this: os: osx
osx_image: xcode8
language: node_js
cache:
npm: false
node_js:
- node
before_script:
- 'npm install -g grunt-cli npm'
- 'export CSC_IDENTITY_AUTO_DISCOVERY=false'
- 'npm run publish-osx'
|
how can i automate encrypting the travis variable without interaction? |
Did this work for you? patrikx3/redis-ui@1dbd363 or did you do something different? |
i can encrypt if i do it with manual, but i have 40 projects and i have to update the git hub token and i have an autmatic encrypt process, but since the last time, it is asking for |
I see the issue. I'll work on a fix shortly. |
BTW, the proper invocation should be
(which doesn't work as of 1.9.0) |
still not working: patrikx3@workstation:~/Projects/patrikx3/p3x/tools$ sudo gem install travis && travis encrypt 'GH_TOKEN=test' -r patrikx3/tools --add --pro --no-interactive && cat .travis.yml
Successfully installed travis-1.9.0
Parsing documentation for travis-1.9.0
Done installing documentation for travis after 0 seconds
1 gem installed
language: node_js
cache:
npm: false
node_js:
- 'lts/*'
before_script:
- 'npm install -g grunt-cli npm'
patrikx3@workstation:~/Projects/patrikx3/p3x/tools$ As you can see. It is not including the GH_TOKEN On the other hand, if it allows to ask for permissions, it works (no patrikx3@workstation:~/Projects/patrikx3/p3x/tools$ sudo gem install travis && travis encrypt 'GH_TOKEN=test' -r patrikx3/tools --add --pro && cat .travis.yml
Successfully installed travis-1.9.0
Parsing documentation for travis-1.9.0
Done installing documentation for travis after 0 seconds
1 gem installed
Overwrite the config file /home/patrikx3/Projects/patrikx3/p3x/tools/.travis.yml with the content below?
This reformats the existing file.
---
language: node_js
cache:
npm: false
node_js:
- lts/*
before_script:
- npm install -g grunt-cli npm
env:
global:
secure: UwDM3bveI00exkkPcVz0I5sVvY6NmGJpMmzdiY/tBj8EdGb5+/VFcuhBaney9VlO4TFO2JV5ACkXmcAql0f2fjS3TcNGoH0woY91o0CSUrdx1P/YnLQLVwwq5k1ziX0JKIajPwlHa2v5RJ4u/DJP5fyJL6nnQpCNhIUL/5rHWSY33JNc9fFGaIBlH4Aghumd63kMHvrn/VxT9lDI2tsyrWruNFg57RoCKwpDSGUF1Z8WOVr389XLCggLgRaAtDkU525JmU+jMXo0Zc5+zIMaJQcU3AnjepxVTP23sijPxIu0oKG4a3WiWPaoQBT4N3IjnYSjiqFW6fgBuru2nCuIEGUJu/PKhSjXzNOs8yNg65va7EvXH5s7O/xJMfsn4MzMa57d19yz6D1aYR6xFcL7k5HEbLlaMNv/gu9ud100IM7UuPWiXpDQtggQOoocuBH/Dho+RykTmBlI8LP+8InVihWHHeFlLsTIxt08e5YezWHQSdXTcF0bSRvIo9andWQ1R+syKe9tykddjf+Bfam8dy6KAR8kggsfC+pzDjGXx9qQE9mSW0kY+UBITg4R+4L+8LYSPh86DiZ8cuSqLlbtGjNRTURv6zRzwhd8G8oS3Sg2kkTL3YuXM05FlQMjL69VymnzROAlCr90RrTsDjzQh63KRiZlslqIusz5EHRxIjY=
(y/N)
y
language: node_js
cache:
npm: false
node_js:
- lts/*
before_script:
- npm install -g grunt-cli npm
env:
global:
secure: UwDM3bveI00exkkPcVz0I5sVvY6NmGJpMmzdiY/tBj8EdGb5+/VFcuhBaney9VlO4TFO2JV5ACkXmcAql0f2fjS3TcNGoH0woY91o0CSUrdx1P/YnLQLVwwq5k1ziX0JKIajPwlHa2v5RJ4u/DJP5fyJL6nnQpCNhIUL/5rHWSY33JNc9fFGaIBlH4Aghumd63kMHvrn/VxT9lDI2tsyrWruNFg57RoCKwpDSGUF1Z8WOVr389XLCggLgRaAtDkU525JmU+jMXo0Zc5+zIMaJQcU3AnjepxVTP23sijPxIu0oKG4a3WiWPaoQBT4N3IjnYSjiqFW6fgBuru2nCuIEGUJu/PKhSjXzNOs8yNg65va7EvXH5s7O/xJMfsn4MzMa57d19yz6D1aYR6xFcL7k5HEbLlaMNv/gu9ud100IM7UuPWiXpDQtggQOoocuBH/Dho+RykTmBlI8LP+8InVihWHHeFlLsTIxt08e5YezWHQSdXTcF0bSRvIo9andWQ1R+syKe9tykddjf+Bfam8dy6KAR8kggsfC+pzDjGXx9qQE9mSW0kY+UBITg4R+4L+8LYSPh86DiZ8cuSqLlbtGjNRTURv6zRzwhd8G8oS3Sg2kkTL3YuXM05FlQMjL69VymnzROAlCr90RrTsDjzQh63KRiZlslqIusz5EHRxIjY=
patrikx3@workstation:~/Projects/patrikx3/p3x/tools$ I suppose |
1.9.0 doesn't have it. You'll need to install the pre-release version with |
And you need the |
ok, thanks. |
|
patrikx3@workstation:~/Projects/patrikx3/redis-ui-workspace/redis-ui$ travis encrypt 'GH_TOKEN=12345' -r patrikx3/redis-u--add --pro -i Overwrite the config file /home/patrikx3/Projects/patrikx3/redis-ui-workspace/redis-ui/.travis.yml with the content below? This reformats the existing file.
As y ou can see, it asks for
Y/N
, when this is automated. How can i force it to always beyes
?The text was updated successfully, but these errors were encountered: