更新: 5 个文件 - 2026-03-18 09:50:04
这个提交包含在:
@@ -94,12 +94,22 @@ BAD_GOOD_SNIPPETS = {
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
def _failure_text(item: Any) -> str:
|
||||
if isinstance(item, dict):
|
||||
return item.get("summary") or f"{item.get('system_id')}::{item.get('source_name')}::{item.get('category')}::{item.get('message')}"
|
||||
return str(item)
|
||||
|
||||
|
||||
SOURCE_KIND_URLS = {
|
||||
"ghsa-global": "https://github.com/advisories",
|
||||
"osv-batch": "https://osv.dev/",
|
||||
"nvd-search": "https://nvd.nist.gov/vuln/search",
|
||||
"kev-json": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
|
||||
"rss-feed": "https://www.rssboard.org/rss-specification",
|
||||
"atom-feed": "https://datatracker.ietf.org/doc/html/rfc4287",
|
||||
"json-feed": "https://www.jsonfeed.org/version/1.1/",
|
||||
"vendor-index": "https://example.com/vendor-index",
|
||||
}
|
||||
|
||||
TARGET_TYPES = ["lab-local", "lab-public", "authorized-third-party"]
|
||||
@@ -498,7 +508,7 @@ def render_generated(
|
||||
if failures:
|
||||
latest_lines.extend(["## 失败列表", ""])
|
||||
for failure in failures:
|
||||
latest_lines.append(f"- {failure}")
|
||||
latest_lines.append(f"- {_failure_text(failure)}")
|
||||
write_text(GENERATED_DIR / "latest-ingest.md", "\n".join(latest_lines))
|
||||
write_json(
|
||||
GENERATED_DIR / "run-summary.json",
|
||||
|
||||
在新工单中引用
屏蔽一个用户