Skip to content

Command 'yq -i '.setting = "value"' config.yml' deletes permissions for yaml files on Windows 11 #2845

Description

@dianaluzgina

Describe the bug
When we run command 'yq -i '.setting = "value"' config.yml' under other user (not admin) on Windows 11, 2019, 2022 config.yml file loses permission for this user. And we get 'Access denied' error

Version of yq: 4.53.6
Operating system: Windows Server 2019, 2022, Windows 11 23H2, 25H2
Installed via: chocolatey

Command
'yq -i '.setting = "value"' config.yml'

Actual behaviour
setting has not changed
permissions for config.yml file for user are deleted. And we get 'Access denied' error
config.yml
setting: old-value


**Expected behaviour**
permissions for config.yml file for user stay the same
config.yml
setting: value

Additional context
Previous versions didn't have such bug on Windows 2019, 2022, 11-23H2, 11-25H2

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions