You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Environment commands (cratis env ...), cratis init and environment selection refuse symbolic links and junctions below the project directory (in .cratis, .cratis/environments, .cratis/local, selection files and .gitignore) and report a validation error instead of following them. A project directory that is itself reached through a link still works, and cloud placeholder files (for example OneDrive Files On-Demand) are not treated as links.
Environment and selection files are written through a new file in the same directory and then moved into place, with owner-only permissions on macOS and Linux.
.gitignore is updated in place and keeps its permissions. cratis env select adds the ignore entry before changing the selected environment, so a failure leaves the previous selection unchanged.
Security
Links committed to a repository can no longer redirect environment files, selections or .gitignore updates to locations outside the project.