docs: 补充整理文件安全规则 - #8
Open
borankux wants to merge 1 commit into
Open
Conversation
borankux
marked this pull request as ready for review
June 13, 2026 08:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
这次只补充
整理文件流程的安全边界,来自一次外置硬盘沙盒测试:受控项目沙盒可以顺利整理,但真实 Downloads-like 目录通常会混有凭证、密钥、临时下载和脚本相对路径,适合把这些边界写进协议。改动
Sensitive Files区块,要求凭证/密钥/证书/env-like 文件单独确认。git mv,非 git 目录或 untracked 文件才使用mv。.file-snapshot.json。验证
git diff --check整理文件通过,管理文件和docs/未被移动,快照 JSON 可解析,移动后的脚本 smoke test 通过。