Skip to content

Commit 4559f68

Browse files
yigitting-yuan
authored andcommitted
allow setting env variables in workflow
set:env is disabled due to a security warning. We don't have anything sensitive in this build so it is fine for us to keep using it for now.
1 parent 12e3cbe commit 4559f68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
java-package: jdk
2525
architecture: x64
2626
- name: set JDK 6,7,8 environment variables for kotlin compiler
27+
env:
28+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
2729
run: echo ::set-env name=JDK_16::$(echo $JAVA_HOME) && echo ::set-env name=JDK_17::$(echo $JAVA_HOME) && echo ::set-env name=JDK_18::$(echo $JAVA_HOME)
2830
- name: Setup Java 9
2931
uses: actions/[email protected]
@@ -32,6 +34,8 @@ jobs:
3234
java-package: jdk
3335
architecture: x64
3436
- name: set JDK_9 environment variable for kotlin compiler
37+
env:
38+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
3539
run: echo ::set-env name=JDK_9::$(echo $JAVA_HOME)
3640

3741
# Checkout

0 commit comments

Comments
 (0)