Updating kubeconfig file permissions to remove helm warning (#16)

This commit is contained in:
shigupt202
2020-10-07 15:00:26 +05:30
committed by GitHub
parent 163908311f
commit 3aa19be838
2 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,7 @@ function run() {
const kubeconfigPath = path.join(runnerTempDirectory, `kubeconfig_${Date.now()}`);
core.debug(`Writing kubeconfig contents to ${kubeconfigPath}`);
fs.writeFileSync(kubeconfigPath, kubeconfig);
fs.chmodSync(kubeconfigPath, '600');
command_1.issueCommand('set-env', { name: 'KUBECONFIG' }, kubeconfigPath);
console.log('KUBECONFIG environment variable is set');
yield setContext(kubeconfigPath);