Skip to content

[Question]: Azure Static Web App task changing directory permissions for the working directory to root #19144

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

Closed
1 of 4 tasks
ayush2708 opened this issue Oct 19, 2023 · 2 comments

Comments

@ayush2708
Copy link

Task name

AzureStaticWebapp@0

Task version

0.228.0

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

RHEL 7

Question

Information:
- I am running Azure Pipelines on Self-Hosted Linux (RHEL7) Agent
- Running the Static Web App Deployment task within Pipeline Job

Issue:
- Task is modifying the working directory permissions to root from local user while execution (The user from which the agent is running initially) 
- This is creating issue for subsequent runs, pipeline (job) is failing at initialization step stating Access is denied to multiple files/directories.
@ayush2708
Copy link
Author

Just adding some logs for better understanding. I was hitting ls-al continiously while the pipeline was running to capture the change in directory ownerships.

[localuser@xxx 19]$ ls -al
total 4
drwxr-xr-x. 7 localuser localuser 75 Oct 19 18:04 .
drwxrwxrwx. 26 localuser localuser 275 Oct 19 18:04 ..
drwxr-xr-x. 2 localuser localuser 6 Oct 19 18:04 a
drwxr-xr-x. 2 localuser localuser 6 Oct 19 18:04 b
drwxr-xr-x. 3 localuser localuser 20 Oct 19 18:04 npmAuthenticate
drwxr-xr-x. 8 localuser localuser 4096 Oct 19 18:04 s
drwxr-xr-x. 2 localuser localuser 6 Oct 19 18:04 TestResults

[localuser@xx 19]$ ls -al
total 4
drwxr-xr-x. 7 localuser localuser 75 Oct 19 18:04 .
drwxrwxrwx. 26 localuser localuser 275 Oct 19 18:04 ..
drwxr-xr-x. 2 localuser localuser 6 Oct 19 18:04 a
drwxr-xr-x. 2 localuser localuser 6 Oct 19 18:04 b
drwxr-xr-x. 3 localuser localuser 20 Oct 19 18:04 npmAuthenticate
drwxr-xr-x. 9 root root 4096 Oct 19 18:05 s
drwxr-xr-x. 2 localuser localuser 6 Oct 19 18:04 TestResults

  • 'localuser' is the 'user' which my agent utilizes for all Pipelines
  • 's' is the 'Default Working directory in Azure Pipelines
  • '19' is the Pipeline Workspace

Copy link

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

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

No branches or pull requests

1 participant