From 55374bb4e1e48e3ae3fe74e73116d3f60e49167e Mon Sep 17 00:00:00 2001 From: mapxn <16299874+mapxn@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:44:13 +0800 Subject: [PATCH] =?UTF-8?q?ONE-488:=20deploy=20=E6=97=A5=E5=BF=97=E6=8E=A9?= =?UTF-8?q?=E7=A0=81=EF=BC=88::add-mask::=20=E6=8E=A9=20D1=5FDATABASE=5FID?= =?UTF-8?q?=20=E4=B8=8E=20CLOUDFLARE=5FACCOUNT=5FID=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 50a6b84..b6e2407 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,6 +20,18 @@ jobs: env: WRANGLER_SEND_METRICS: "false" steps: + # ONE-488: mask resource IDs that cloudflare/wrangler and `wrangler d1 execute` + # print in later steps (D1 database + account). Values are passed via env only + # (never inlined into `run:`, which echoes the script into the log). + - name: Mask resource IDs + env: + D1_DATABASE_ID: ${{ vars.D1_DATABASE_ID }} + CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} + run: | + for v in D1_DATABASE_ID CLOUDFLARE_ACCOUNT_ID; do + if [ -n "${!v}" ]; then echo "::add-mask::${!v}"; fi + done + - uses: actions/checkout@v7 - uses: pnpm/action-setup@v6