Repository navigation
ONE-488: nav deploy 日志掩码(掩 D1_DATABASE_ID 与 CLOUDFLARE_ACCOUNT_ID) - #15
Merged
Merged
Conversation
This was referenced Nov 6, 2026
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.
ONE-488:nav deploy 日志掩码
在
.github/workflows/deploy.yml的deployjob 最前新增一个Mask resource IDsstep,用::add-mask::掩掉后续步骤会打印到 Actions 日志的两个 Cloudflare 资源 ID(这两个 ID 不是密钥,但公开仓库不该广播):D1_DATABASE_IDCLOUDFLARE_ACCOUNT_ID与舰队附表(父单 ONE-484)的差异
D1_DATABASE_ID+ 账户 ID 变量CLOUDFLARE_ACCOUNT_ID(变量名按本仓deploy.yml现状取,非父单里的脱敏占位符)。KV_NAMESPACE_ID。D1_DATABASE_NAME/TABLE_PREFIX,不掩任何 secret;值只经env:传入,run:里不内联${{ vars.* }}(避免脚本回显先漏一遍);空值由[ -n "${!v}" ]跳过。改动范围
单文件
.github/workflows/deploy.yml,净增 12 行(3 行注释 + step),其余步骤与顺序未动。回滚方式:revert 本 PR 即可。自测
actionlint .github/workflows/deploy.yml→ exit 0(工作流语法与表达式校验通过)。::add-mask::;D1_DATABASE_ID为空 → 只对非空项注册,未对空字符串注册。checkjob:lint / format / typecheck / build / test)见本 PR 检查结果。