diff options
-rw-r--r-- | poetry_restrict_plugin/plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poetry_restrict_plugin/plugin.py b/poetry_restrict_plugin/plugin.py index fb4d509..632f5bf 100644 --- a/poetry_restrict_plugin/plugin.py +++ b/poetry_restrict_plugin/plugin.py @@ -93,7 +93,7 @@ class RestrictPlugin(Plugin): # Allow manipulation of files in our projects, e.g. for linters. # We might need to check this more thoroughly. For instance, configuring custom # filter programs in gitattributes might allow a sandbox escape. - ruleset.allow(".") + ruleset.allow(os.path.dirname(poetry.pyproject_path)) ruleset.apply() |