Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nubfilter opened this issue Jan 27, 2023 · 2 comments
Open

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

nubfilter opened this issue Jan 27, 2023 · 2 comments
Assignees

Comments

@nubfilter
Copy link

nubfilter commented Jan 27, 2023

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'

nubfilter pushed a commit to nubfilter/azure-pipelines-terraform that referenced this issue Jan 27, 2023
@AminTi
Copy link

AminTi commented Jan 30, 2023

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

@mericstam mericstam self-assigned this Feb 13, 2023
@mericstam
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants