Access Environment Variables Inside Action Scripts

Overview

This article clarifies whether it is possible to access environment variables inside action scripts. The goal is to retrieve sensitive information, such as a secret key or access token, from an application environment file created as part of a Continuous Integration/Continuous Deployment (CI/CD) process.

Applies To
  • Action Scripts
Solution

It is not possible to access environment variables directly inside action scripts.

Secrets must be stored in the Secrets section.

Recommended content

No recommended content found...