If you don't specify the TF_CLI_CONFIG_FILE environment variable, the
default config is written to $HOME directory, which could theoretically
be shared by multiple runners when using self-hosted runners.
When TF_CLI_CONFIG_FILE is _not_ in use, I replaced the usage of
$HOME with the directory $RUNNER_TEMP, whose setup/cleanup is
managed by the runner framework and exported a TF_CLI_CONFIG_FILE.
This updates the NodeJS runtime version from 12 to 16. NodeJS 12 is EOL on 4/30/2022. NodeJS 16 is supported on all Github Actions Runners v2.285.0 or later.
Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: James Pogran <jpogran@outlook.com>