diff --git a/scubagoggles/run_rego.py b/scubagoggles/run_rego.py index 4a70d2ba..39af75ec 100644 --- a/scubagoggles/run_rego.py +++ b/scubagoggles/run_rego.py @@ -61,11 +61,17 @@ def opa_eval(product_name: str, '-d', str(utils_rego), '--format=values'] + debug = True + if debug: # This "explain" option seems to do nothing... command.append('--explain=full') try: + cpe = subprocess.run(['powershell', 'pwd'], shell=True, capture_output=True) + + log.warning('cwd: %s', cpe.stdout.decode()) + log.warning('Running OPA: "%s"', ' '.join(command)) output = subprocess.run(command, capture_output=True, check=True)