Search code examples
continuous-integrationgithub-actions

Is there a way to set non-secret environment variables in Github Actions on the Settings page?


As far as I know, there are two ways to set environment variables in Github Actions:

  • Hardcoding them into YAML file
  • Adding them as repository secrets on the settings page

Repository secrets page

But what if I don't want them to be secret? On the picture above, SERVER_PREFIX and ANALYTICS_ENABLED shouldn't be secret. Is there a way to set up env variables on the settings page and make them visible? In Travis we had that option.


Solution

  • In January 2023, GitHub added support for non-secret configuration variables (blog post):

    GitHub Actions variables tab