Skip to content

Commit 4dbaef7

Browse files
authored
(Already Shipped) Filter NODE_OPTIONS from env for file output in Actions workflows - [GA] (#43418)
1 parent a805fa2 commit 4dbaef7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

content/actions/using-workflows/workflow-commands-for-github-actions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,12 @@ You can make an environment variable available to any subsequent steps in a work
799799

800800
{% 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)."
801801

802+
{% ifversion github-env-node-options %}{% note %}
803+
804+
**Note:** Due to security restrictions, `GITHUB_ENV` cannot be used to set the `NODE_OPTIONS` environment variable.
805+
806+
{% endnote %}{% endif %}
807+
802808
### Example of writing an environment variable to `GITHUB_ENV`
803809

804810
{% bash %}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reference: #12160
2+
# `GITHUB_ENV` cannot be used to set the `NODE_OPTIONS` environment variable
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '>= 3.11'

0 commit comments

Comments
 (0)