From 4636f0fe4c1472d942c0d75231c96ffbece0b21f Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 28 Sep 2026 02:42:47 -0600 Subject: [PATCH] ci: keep PATH when the quality job runs npm under sudo sudo resets PATH to its secure_path, and the Gitea job image keeps node and npm in the runner tool cache, so 'sudo npm' was not found. Pass the job's PATH through; GitHub-hosted runners behave the same either way. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01441BzdGcvQmXkiN2qDjfZg --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eac1818..c68e5f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -349,7 +349,7 @@ jobs: run: | sudo apt-get update -qq && sudo apt-get install -y -qq cppcheck shellcheck pip install --quiet lizard ruff - sudo npm install --silent -g jscpd + sudo env "PATH=$PATH" npm install --silent -g jscpd curl -fsSL -o /tmp/scc.tar.gz \ https://github.com/boyter/scc/releases/download/v3.6.0/scc_Linux_x86_64.tar.gz sudo tar -C /usr/local/bin -xzf /tmp/scc.tar.gz scc