Skip to content

Commit f7278f5

Browse files
committed
Avoid reading .nvmrc during action setup
This moves PWD to /, to avoid picking up any problematic `.nvmrc` which may be present in the workdir
1 parent d5fc11e commit f7278f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

entrypoint.sh

+4
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ install_node()
5656
fi
5757
bash nvm-install.sh
5858
rm nvm-install.sh
59+
60+
# Avoid picking up `.nvmrc` from the repository
61+
pushd / >/dev/null
5962
. ~/.nvm/nvm.sh
6063
nvm install "$NODEVER"
64+
popd >/dev/null
6165
}
6266

6367
install_slither()

0 commit comments

Comments
 (0)