更新: 359 个文件 - 2026-03-16 23:30:01
这个提交包含在:
@@ -3,7 +3,7 @@ from __future__ import annotations
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List
|
||||
|
||||
from intel.config import FRAMEWORK_ROOT, GENERATED_DIR, REGISTRY_ROOT, ROOT, SECURE_CODE_ROOT, SOURCE_MAP_PATH, SYSTEMS_DIR
|
||||
from intel.config import FRAMEWORK_ROOT, GENERATED_DIR, REGISTRY_ROOT, REPRO_MAP_PATH, ROOT, SECURE_CODE_ROOT, SOURCE_MAP_PATH, SYSTEMS_DIR
|
||||
from intel.render import LANGUAGES, TOPIC_DESCRIPTIONS
|
||||
from intel.utils import load_all_json
|
||||
|
||||
@@ -15,6 +15,9 @@ REQUIRED_REGISTRY_FIELDS = {
|
||||
"severity",
|
||||
"source_confidence",
|
||||
"status",
|
||||
"verification_status",
|
||||
"verification_mode",
|
||||
"repro_profile_id",
|
||||
}
|
||||
|
||||
REQUIRED_SYSTEM_FIELDS = {
|
||||
@@ -36,6 +39,8 @@ def validate(source_map: Dict[str, Any]) -> List[str]:
|
||||
errors: List[str] = []
|
||||
if not SOURCE_MAP_PATH.exists():
|
||||
errors.append("source-map.yaml is missing")
|
||||
if not REPRO_MAP_PATH.exists():
|
||||
errors.append("repro-map.yaml is missing")
|
||||
|
||||
systems = source_map.get("systems", [])
|
||||
ids = set()
|
||||
@@ -76,6 +81,8 @@ def validate(source_map: Dict[str, Any]) -> List[str]:
|
||||
GENERATED_DIR / "coverage-matrix.md",
|
||||
GENERATED_DIR / "latest-ingest.md",
|
||||
GENERATED_DIR / "run-summary.json",
|
||||
GENERATED_DIR / "dashboard" / "index.html",
|
||||
GENERATED_DIR / "dashboard" / "summary.json",
|
||||
ROOT / "08-threat-intel" / "registry" / "source-confidence.md",
|
||||
]:
|
||||
if not path.exists():
|
||||
|
||||
在新工单中引用
屏蔽一个用户