From a899e1660483bc0b740ec5dff53aae9950536c05 Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Fri, 2 Oct 2026 21:31:53 +0800 Subject: [PATCH] fix(ci): scope auto-fix commits and ignore artifacts --- .github/workflows/lint-format.yml | 22 +++++++++++++++++++++- .gitignore | 4 ++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 23946cb..a87ab50 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -45,7 +45,27 @@ jobs: uses: siiway/verified_bot_commit@v0 with: message: "chore: auto-fix lint & formatting [skip ci]" - files: "**" + # Explicit whitelist instead of "**": the action downloads its own + # binary with `curl -o archive.tar.gz` into the workspace root, so + # "**" would commit that tarball (happened in Oct 2026). The + # archive.* entries in .gitignore are the second line of defense. + files: | + app/** + server/** + tests/** + docs/** + public/** + migrations/** + .github/** + *.md + *.ts + *.js + *.json + *.jsonc + *.yaml + *.yml + *.css + *.vue ref: ${{ github.head_ref || github.ref }} if-no-commit: notice diff --git a/.gitignore b/.gitignore index 4f1859d..00257b6 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,7 @@ config.yaml .direnv/ result saas-roadmap.md + +# verified_bot_commit action download artifacts (accidentally committed once) +archive.tar.gz +archive.zip