更新: 2531 个文件 - 2026-03-17 21:00:03

这个提交包含在:
hao
2026-03-17 21:00:04 -07:00
父节点 a3edc88834
当前提交 080e55a98c
修改 2531 个文件,包含 135521 行新增3725 行删除

查看文件

@@ -331,16 +331,16 @@ def render_case_pages(advisories: List[AdvisoryRecord]) -> None:
'minimal_validation: "read-only probe, controlled payload, reversible test"',
"aliases:",
]
for alias in item.aliases:
for alias in item.aliases or []:
lines.append(f' - "{alias}"')
lines.append("affected_versions:")
for version in item.affected_versions[:20]:
for version in (item.affected_versions or [])[:20]:
lines.append(f' - "{version}"')
lines.append("fixed_versions:")
for version in item.fixed_versions[:20]:
for version in (item.fixed_versions or [])[:20]:
lines.append(f' - "{version}"')
lines.append("secure_code_topics:")
for topic in item.secure_code_topics:
for topic in item.secure_code_topics or []:
lines.append(f' - "{topic}"')
lines.extend(
[
@@ -365,15 +365,15 @@ def render_case_pages(advisories: List[AdvisoryRecord]) -> None:
f"- 严重度: `{item.severity}`",
f"- 来源置信度: `{item.source_confidence}`",
f"- 官方主源: {item.official_source_url or '-'}",
f"- 影响版本: `{', '.join(item.affected_versions[:10]) or 'unknown'}`",
f"- 修复版本: `{', '.join(item.fixed_versions[:10]) or 'unknown'}`",
f"- 影响版本: `{', '.join((item.affected_versions or [])[:10]) or 'unknown'}`",
f"- 修复版本: `{', '.join((item.fixed_versions or [])[:10]) or 'unknown'}`",
"",
"## 其他来源",
"",
]
)
if item.secondary_source_urls:
for ref in item.secondary_source_urls[:20]:
for ref in (item.secondary_source_urls or [])[:20]:
lines.append(f"- {ref}")
else:
lines.append("- 无额外来源")
@@ -392,7 +392,7 @@ def render_case_pages(advisories: List[AdvisoryRecord]) -> None:
"",
]
)
for topic in item.secure_code_topics:
for topic in item.secure_code_topics or []:
for language in LANGUAGES:
path = SECURE_CODE_ROOT / language / f"{topic}.md"
if path.exists():