From 76359e7c73339bae434dc66b74f47b80cf990706 Mon Sep 17 00:00:00 2001 From: Agents Agent Date: Wed, 1 Jul 2026 12:39:58 +0000 Subject: [PATCH] fix(node-ci): remove vendored actions tree before quality checks The lint/test job checks out the shared workflows repo into .github-workflows/ to run the setup-node composite action (SHA-pinned via job_workflow_sha, so it must live in the workspace). A workspace-wide lint command such as `eslint .` then scanned that vendored tree and failed on its machine-authored YAML. The vendored actions are only needed for setup-node, so remove the directory immediately afterwards; every quality command then sees only the consuming project's files. Fixes the class of failure globally for all node consumers. --- .github/workflows/node-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index 6a681c7..8b0a40c 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -105,6 +105,12 @@ jobs: install-command: ${{ inputs.install-command }} github-packages-token: ${{ secrets.packages-token || github.token }} + # The vendored actions repo is only needed for setup-node above. Remove it before any + # quality command runs so workspace-wide linters/formatters (e.g. `eslint .`, `prettier + # --check .`) only ever see the consuming project's own files, never this CI machinery. + - name: Remove vendored CI actions before quality checks + run: rm -rf .github-workflows + - name: Package check if: ${{ inputs.package-check-command != '' }} working-directory: ${{ inputs.working-directory }}