fix(security): 移除敏感环境文件版本追踪并清理硬编码Token(v3) #66
Reference in New Issue
Block a user
Delete Branch "fix/security-hardening-v3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
安全加固 PR #53 重新提交
变更内容
从版本控制中移除敏感环境文件
git rm --cached .env.production— 生产环境配置不再纳入版本控制git rm --cached .env.staging— staging 环境配置不再纳入版本控制更新 .gitignore
.env.staging的例外规则(之前!.env.staging允许其被追踪).env.*环境配置文件(除.env.example外)均被忽略清理脚本中硬编码的 API Token
scripts/ci_failure_check.sh:Gitea API Token 改为从环境变量GITEA_API_TOKEN读取scripts/auto_merge_prs.sh:同上与 PR#53 的区别
使用说明
使用 ci_failure_check.sh 或 auto_merge_prs.sh 前需设置环境变量: