Secure environment in appveyor.yml doesn't work but UI works
I've set a secure environment in my appveyor.yml file: https://github.com/taoyouh/SarasaGothicAppx/blob/c3c7f7bced51eb51b08f2b1012daafe3b28595fd/appveyor.yml#L10C5-L11C79
However, the builds looked like the environment varaible doesn't exist:
https://ci.appveyor.com/project/taoyouh/sarasagothicappx/builds/53113807#:~:text=ConvertTo%2DSecureString%20%3A%20Cannot%20bind%20argument%20to%20parameter%20%27String%27%20because%20it%20is%20null.
If I add that secure environment to the UI settings and rebuild the same commit, everything goes well:
https://ci.appveyor.com/project/taoyouh/sarasagothicappx/builds/53113917
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Owen McDonnell on 22 Nov, 2025 12:14 AM
Are you encrypting that variable with the same account that owns the project?