From 08b5b438b9a87684ff6c9c0b3a98df8753036428 Mon Sep 17 00:00:00 2001 From: zijunchiang Date: Sat, 26 Sep 2026 12:35:27 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E7=99=BB=E8=AE=B0=20Gitee=20=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E4=BB=A4=E7=89=8C=E4=BD=8D=E7=BD=AE=E4=B8=8E=E7=94=A8?= =?UTF-8?q?=E9=80=94=E8=BE=B9=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 凭据条目拆分为 Gitea(代码主仓库) / Gitee(仅发布 Release) 两条 - 明确 ~/.git-credentials-gitee(600) 由 credential.https://gitee.com.helper 引用, 只用于 API 建 Release/传附件,不得用于推送源码(规则 2) - 纯文档改动,版本号保持 1.4.0 --- AGENTS.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 240f9db..e773536 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,9 +31,14 @@ > 三者的触发条件只有一个 —— **收到明确的人工发布指令**。若不确定是否已发布, > 用 `GET /repos/{owner}/{repo}/releases` 与 `/tags` 核对,不要凭"打过包"推断。 -- 凭据:Gitea 访问令牌 `dsh-sync-20260926`(2026-09-26 数据迁移后重建;可在 Gitea - 「设置 → 应用 → 访问令牌」随时吊销),存放于 `~/.git-credentials-gitea`(权限 600), - 由本仓库级 `credential.helper` 引用;账号密码不写入仓库配置。 +- 凭据: + - **Gitea**(代码主仓库):访问令牌 `dsh-sync-20260926`(2026-09-26 数据迁移后重建;可在 Gitea + 「设置 → 应用 → 访问令牌」随时吊销),存放于 `~/.git-credentials-gitea`(权限 600), + 由本仓库级 `credential.helper` 引用; + - **Gitee**(仅发布 Release,按规则 2 不推代码):访问令牌存放于 `~/.git-credentials-gitee` + (权限 600),由全局 `credential.https://gitee.com.helper` 引用;**只用于 API 建 Release / + 传附件**,不得用于推送源码。 + - 账号密码不写入仓库配置。 ### 推送方式