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

(#3281) Add validation for cache folder permissions #3282

Merged
merged 2 commits into from
Jul 25, 2023

Commits on Jul 25, 2023

  1. (chocolatey#3281) Add validation for cache folder permissions

    These changes introduces a new validation check to ensure that
    the system cache folder that is used for storing NuGet responses
    have been properly locked down to administrators.
    
    When the directory exists, and allows modifications or creations of
    files by normal user this will output a validation warning about steps
    that can be taken to lock down the directory.
    
    When the directory does not exist, this same validation check ensure
    that the directory is created while only allowing Administrators to
    modify, create or delete anything in the folder.
    AdmiringWorm authored and gep13 committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    583d149 View commit details
    Browse the repository at this point in the history
  2. (maint) Add helper to split on max line lengths

    These changes introduces a new string helper that ensures
    that each line in the output will not be any longer than the
    configured maximum line length. And attempt to split these
    lines at the last available non-letter and non-digit before the
    length limitation.
    AdmiringWorm authored and gep13 committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    2217d63 View commit details
    Browse the repository at this point in the history