Instead of keeping sensitive information like secret_key and access_token in the secrets section of each action item, we want to retrieve them from the application env file, which is created as part of the CI/CD process. Is there a way to access env variables inside action scripts?
I’m afraid that, at this moment, it is not possible. You can currently only store secrets in Actions via the secrets section.
Reference: Write Your First Action