feat(ops): fully integrate safety audits and UI sync check into GitHub Workflows

This commit is contained in:
Nubenetes Bot
2026-05-17 16:14:06 +02:00
parent 019959d338
commit e8ab3032c7
3 changed files with 19 additions and 7 deletions

View File

@@ -96,6 +96,10 @@ jobs:
pip install --no-cache-dir pydantic PyGithub aiohttp beautifulsoup4 httpx fake-useragent pytz python-dotenv twikit>=2.1.2 playwright playwright-stealth pyyaml
playwright install chromium --with-deps
- name: Workflow UI Synchronization Check (Mandate 11)
run: |
python src/sync_workflow_ui.py
- name: Global Agentic Curation Execution
id: run_curation
env:

View File

@@ -56,6 +56,11 @@ jobs:
PYTHONPATH: .
run: |
python -u src/v2_optimizer.py
if [ -f v2_safety_report.md ]; then
cat v2_safety_report.md >> pr_description.md
else
echo "No safety report generated." > pr_description.md
fi
- name: Create Pull Request for V2 Elite Update
uses: peter-evans/create-pull-request@v6
@@ -63,12 +68,6 @@ jobs:
branch: bot/v2-elite-sync
base: develop
title: "V2 Elite: Agentic Optimization Sync (2026)"
body: |
This PR updates the Nubenetes V2 (Agentic Elite) edition.
The AI agent has scanned the V1 archive and selected the top-tier resources according to 2026 architectural standards.
- GitHub Repos inactive for too long have been deprioritized.
- Fundational 'Awesome' lists have been preserved.
- Redundancy has been reduced to focus on innovation.
body-path: pr_description.md
commit-message: "feat: sync V2 elite curated edition"
labels: "v2-elite, agentic-sync"

View File

@@ -107,6 +107,15 @@ class V2VisionEngine:
await self._sync_enterprise_navigation(v2_data)
self._save_inventory()
log_event("V2 ELITE PORTAL GENERATED SUCCESSFULLY.")
# --- FINAL SAFETY AUDIT ---
try:
from src.safety_guard import SafetyGuard
guard = SafetyGuard()
report = guard.generate_audit_report()
with open("v2_safety_report.md", "w") as f: f.write(report)
except Exception as e:
log_event(f" [!] V2 Safety Audit Error: {e}")
async def _gather_all_v1_content(self):
all_links, mosaic_html, videos_html = [], "", ""