(Already Shipped) Filter NODE_OPTIONS from env for file output in Actions workflows - [GA] (#43418)
This commit is contained in:
@@ -799,6 +799,12 @@ You can make an environment variable available to any subsequent steps in a work
|
|||||||
|
|
||||||
{% data reusables.actions.environment-variables-are-fixed %} For more information about the default environment variables, see "[AUTOTITLE](/actions/learn-github-actions/environment-variables#default-environment-variables)."
|
{% data reusables.actions.environment-variables-are-fixed %} For more information about the default environment variables, see "[AUTOTITLE](/actions/learn-github-actions/environment-variables#default-environment-variables)."
|
||||||
|
|
||||||
|
{% ifversion github-env-node-options %}{% note %}
|
||||||
|
|
||||||
|
**Note:** Due to security restrictions, `GITHUB_ENV` cannot be used to set the `NODE_OPTIONS` environment variable.
|
||||||
|
|
||||||
|
{% endnote %}{% endif %}
|
||||||
|
|
||||||
### Example of writing an environment variable to `GITHUB_ENV`
|
### Example of writing an environment variable to `GITHUB_ENV`
|
||||||
|
|
||||||
{% bash %}
|
{% bash %}
|
||||||
|
|||||||
6
data/features/github-env-node-options.yml
Normal file
6
data/features/github-env-node-options.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Reference: #12160
|
||||||
|
# `GITHUB_ENV` cannot be used to set the `NODE_OPTIONS` environment variable
|
||||||
|
versions:
|
||||||
|
fpt: '*'
|
||||||
|
ghec: '*'
|
||||||
|
ghes: '>= 3.11'
|
||||||
Reference in New Issue
Block a user