diff --git a/aws-sam-cli-main/samcli/local/lambdafn/runtime.py b/aws-sam-cli-main/samcli/local/lambdafn/runtime.py index 163f967..3cce676 100644 --- a/aws-sam-cli-main/samcli/local/lambdafn/runtime.py +++ b/aws-sam-cli-main/samcli/local/lambdafn/runtime.py @@ -488,7 +488,7 @@ def _unzip_file(filepath): temp_dir = tempfile.mkdtemp() if os.name == "posix": - os.chmod(temp_dir, 0o755) + os.chmod(temp_dir, 0o400) LOG.info("Decompressing %s", filepath)