--- title: "Gitea" type: entity tags: [git, self-hosted, github-alternative, devops] sources: [self-healing-home-server] last_updated: 2026-04-22 --- ## Aliases - Gitea - gitea ## Definition Gitea 是一个开源、轻量级的自托管 Git 服务(GitHub/GitLab 替代方案),使用 Go 语言编写,最低硬件要求极低(512MB RAM)。支持 Git 仓库管理、Issue 追踪、Pull Request、Wiki、CI/CD(Actions)等完整功能。 ## In Home Lab Context 在 [[self-healing-home-server]] 安全架构中,Gitea 作为**本地优先 Git 仓库**: - 作为私有代码中转站(推送到公共 GitHub 前的 CI 扫描_gate) - CI pipeline 运行 TruffleHog 等 secrets scanning 工具 - Human review required before main branch merges - 防止 Agent 直接暴露 API keys 到公共仓库 ## Security Role Gitea 在 [[Local-first Git]] 工作流中的位置: ``` Agent → commits → Gitea (private) → CI scan (TruffleHog) → Human review → GitHub (public) ``` ## Connections - [[Local-first Git]] — Gitea 作为私有中转的核心基础设施 - [[OpenClaw]] — Agent 代码托管和工作流编排平台 - [[TruffleHog]] — Gitea CI pipeline 中运行的 secrets scanning 工具 - [[Defense-in-Depth]] — Gitea 是多层安全防御架构的一环