Hello, I have made a ubuntu 16.04 worker with pwsh/docker/kubectl/az to deploy on k8s connected with a service principal in azure.
I have successfully deploy (yay!) but i get warning on all my build steps
WARNING: /etc/octopus/Worker-Linux-001/Work/20210414200127-5603-49/kubectl-octo.yml has permissions “644”.
It should be readable and writable only by its owner.
I understand the problem but what i don’t get is how to prevent it since the Work directory keep getting emptied after the deployment is done
A similar warning appears when using the “Upgrade a Helm Chart” step. Though it sounds like you are running a different step, the same solution may apply.
To fix, a very simple custom deployment script can be added, which changes the permissions on the file before any command is run.