microsoft / azure-pipelines-terraform

Azure Pipelines tasks for installing Terraform and running Terraform commands in a build or release pipeline.
MIT License
101 stars 62 forks source link

Task should not be CHMODing the terraform directory to 777. #128

Open nubfilter opened 1 year ago

nubfilter commented 1 year ago

Line 74 of this file is trying to CHMOD 777 a directory - why?

https://github.com/microsoft/azure-pipelines-terraform/blob/79290bf69bc67f288bfdbe318544b9a36a65a926/Tasks/TerraformInstaller/src/terraform-installer.ts

ADO Agents should not be running with privileged accounts. We should accept the default permissions from the directory. We have multiple agents running on multiple servers with different user accounts, and are attempting to share the agent-tools folder. Getting the following error:

[error]Error: EPERM: operation not permitted, chmod '/app/agent-tools/terraform/1.1.9/x64/terraform'

AminTi commented 1 year ago

Thanks for reporting. @mericstam will look into this and get back to you sooner.

mericstam commented 1 year ago

I will check why this was there in the first place.