INNER CODE UNIT · Python
safety_report
nubenetes/awesome-kubernetes · src/main.py:466
safety_report = guard.generate_audit_report() # Non-blocking report
try:
# --- BBDD Persistence: Include YAML database files in the PR ---
from src.config import INVENTORY_PATH
if os.path.exists(INVENTORY_PATH):
with open(INVENTORY_PATH, 'r') as f: modified_files_content[INVENTORY_PATH] = f.read()
pr_url = git_controller.apply_multi_file_changes(
modified_files_content,
metrics,
safety_report=safety_report
)
if pr_url:
print(f"PULL_REQUEST_URL: {pr_url}")
except Exception as e:
log_event(f"[!] Error creating PR: {e}")