tag:help.appveyor.com,2012-11-13:/discussions/questions/24797-appveyor-secure-variable-encryptdecryptAppVeyor: Discussion 2018-08-17T18:02:12Ztag:help.appveyor.com,2012-11-13:Comment/459121882018-08-17T06:00:58Z2018-08-17T06:00:58ZAppveyor secure variable (encrypt/decrypt)<div><p>Secure strings feature is currently supported in [environment], [deploy] and [notifications] sections. But how do I run my python script include parameters?</p>
<ul>
<li>python myscript.py --key1=${KEY1} --key2=${KEY2}</li>
</ul></div>lb.thanhtag:help.appveyor.com,2012-11-13:Comment/459121882018-08-17T14:21:10Z2018-08-17T14:21:10ZAppveyor secure variable (encrypt/decrypt)<div><p>Is this for an Ubuntu or Windows build?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/459121882018-08-17T15:52:18Z2018-08-17T15:52:18ZAppveyor secure variable (encrypt/decrypt)<div><p>The worker build is Ubuntu.</p></div>lb.thanhtag:help.appveyor.com,2012-11-13:Comment/459121882018-08-17T16:35:18Z2018-08-17T16:35:18ZAppveyor secure variable (encrypt/decrypt)<div><p>In that case, you should just be able to drop the curly braces. i.e.<br></p>
<pre>
<code>- python myscript.py --key1=$KEY1 --key2=$KEY2</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/459121882018-08-17T16:43:35Z2018-08-17T16:43:35ZAppveyor secure variable (encrypt/decrypt)<div><p>It’s awesome.</p>
<p>You mean that I don’t need to do decrypt before use secured variable.</p>
<p>secure-file -decrypt file.enc</p></div>lb.thanhtag:help.appveyor.com,2012-11-13:Comment/459121882018-08-17T17:24:33Z2018-08-17T17:24:33ZAppveyor secure variable (encrypt/decrypt)<div><p>Thank you very much for your support.<br>
The problem was solved.</p>
<p>There are many ways to access environment from worker build.<br>
%var% $var ${var}</p></div>lb.thanhtag:help.appveyor.com,2012-11-13:Comment/459121882018-08-17T18:02:09Z2018-08-17T18:02:09ZAppveyor secure variable (encrypt/decrypt)<div><p>No problem, glad you got it solved.</p></div>Owen McDonnell