From bae48ae2fb3b41c24b0ed28f40ca0d701cb79d88 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 21 Jul 2026 00:58:01 +0200 Subject: [PATCH] feat(node-ci): add enable-type-check and enable-gitleaks toggles Plain-JS packages have no type/build layer (type-check would need a no-op hack) and repos without a GITLEAKS_LICENSE would fail the gitleaks job. Both are now opt-out via inputs (default true), so the node gold standard fits plain-JS consumers cleanly. Signed-off-by: Sebastian Mendel --- .github/workflows/node-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index 1d4d719..f5ebf0f 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -82,10 +82,18 @@ on: type: string default: "" + enable-type-check: + description: "Run the type-check step in the TS job. Disable for plain-JS packages with no type/build layer." + type: boolean + default: true enable-format-check: description: "Run the Prettier format check in the TS job." type: boolean default: true + enable-gitleaks: + description: "Run the gitleaks secret-scanning job. Disable where a GITLEAKS_LICENSE is unavailable." + type: boolean + default: true enable-test: description: "Run the test job." type: boolean @@ -159,6 +167,7 @@ jobs: lint-cmd: ${{ inputs.lint-cmd }} type-check-cmd: ${{ inputs.type-check-cmd }} format-check-cmd: ${{ inputs.format-check-cmd }} + enable-type-check: ${{ inputs.enable-type-check }} enable-format-check: ${{ inputs.enable-format-check }} pre-command: ${{ inputs.pre-command }} @@ -213,6 +222,7 @@ jobs: gitleaks: name: Secret Scanning + if: ${{ inputs.enable-gitleaks }} uses: netresearch/.github/.github/workflows/gitleaks.yml@main permissions: contents: read