If root folder is specified, scan the plan file that is expected in that folder
@@ -34,6 +34,11 @@ class Runner(BaseRunner):
if external_checks_dir:
for directory in external_checks_dir:
resource_registry.load_external_checks(directory, runner_filter)
+ if root_folder:
+ root_folder = os.path.abspath(root_folder)
+ # Assume plan files will have this name by default
+ files = [f'{root_folder}/planfile.json']
+
if files:
files = [os.path.abspath(file) for file in files]
for file in files:
