Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

AppVeyor: Add "secure" environment variables

Jean-Christophe Fillion-Robin edited this page Mar 6, 2023 · 3 revisions

⚠️ This page is currently out-of-date and may contain errors but is retained for historical reference.


This is can be achieved in two steps:

  • encrypt the value NAME=VALUE
  • add result to appveyor.yml

Step-by-step:

  • Click on Encrypt data

appveyor-adding-secure-env-variable-1

  • Enter name and value to encrypt, then click Encrypt

appveyor-adding-secure-env-variable-2

  • Update appveyor.yml adding section like this one where XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX corresponds to the encrypted value displayed in the previous step:
environment:
  my_variable:
    secure: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX