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

Add a new rule which detects when a file is created with os.Create but the configured permissions are less than 0666 #1020

Merged
merged 2 commits into from
Sep 25, 2023

Commits on Sep 25, 2023

  1. Add a new rule which detects when a file is created with os.Create bu…

    …t the configured permissions are less than 0666
    
    It seems that the os.Create will create by default a file with 0666 permissions.
    
    This should be detected when the configured permissions are less than 0666. By default will not detect this case
    unless the more restrictive mode is configured.
    
    Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
    ccojocar committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    f82cee2 View commit details
    Browse the repository at this point in the history
  2. Fix lint warning

    Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
    ccojocar committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    32d5df7 View commit details
    Browse the repository at this point in the history