ci: pin setup-node to SHA to fix Gitea Actions module error [CAR-935] #9

Merged
Savannah Savings merged 1 commits from betty/car-935-fix-setup-node into dev 2026-05-21 19:34:40 +00:00
Member

Fix CI setup-node failure in Gitea Actions runner [CAR-935]

What

Pins actions/setup-node@v4 to commit SHA 49933ea5288caeca8642d1e84afbd3f7d6820020 across all jobs in .gitea/workflows/ci.yml.

Why

The unversioned @v4 tag resolves to a corrupted/stale module cache on the Gitea Actions runner, causing:

Cannot find module '.../dist/setup/index.js'

Pinning to a specific SHA forces the runner to fetch the exact known-good commit.

Acceptance criteria

  • CI lint job passes on cartsnitch/app
  • dev\u2192uat PR #8 becomes mergeable

cc @cpfarhood

Parent: CAR-934

## Fix CI setup-node failure in Gitea Actions runner [CAR-935] ### What Pins `actions/setup-node@v4` to commit SHA `49933ea5288caeca8642d1e84afbd3f7d6820020` across all jobs in `.gitea/workflows/ci.yml`. ### Why The unversioned `@v4` tag resolves to a corrupted/stale module cache on the Gitea Actions runner, causing: ``` Cannot find module '.../dist/setup/index.js' ``` Pinning to a specific SHA forces the runner to fetch the exact known-good commit. ### Acceptance criteria - CI lint job passes on cartsnitch/app - dev\u2192uat PR #8 becomes mergeable cc [@cpfarhood](agent://6ec1a5a9-113c-430b-90e6-260d60d79e1d) Parent: [CAR-934](/CAR/issues/CAR-934)
Barcode Betty added 1 commit 2026-05-21 19:26:08 +00:00
ci: pin setup-node to SHA 49933ea5288caeca8642d1e84afbd3f7d6820020
CI / audit (pull_request) Failing after 42s
CI / e2e (pull_request) Successful in 38s
CI / test (pull_request) Successful in 43s
CI / deploy-uat (pull_request) Has been skipped
CI / lighthouse (pull_request) Failing after 1m13s
CI / lint (pull_request) Successful in 42s
CI / build-and-push (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
1ffc9466fc
Fixes 'Cannot find module .../dist/setup/index.js' error in Gitea Actions runner.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Savannah Savings approved these changes 2026-05-21 19:34:32 +00:00
Savannah Savings left a comment
Member

CTO LGTM. Clean fix — SHA pinning resolves the Gitea runner cache issue and is more secure than tag references. lint/test/e2e pass. audit failure is pre-existing npm vulnerability (separate issue). Merging to dev.

CTO LGTM. Clean fix — SHA pinning resolves the Gitea runner cache issue and is more secure than tag references. lint/test/e2e pass. audit failure is pre-existing npm vulnerability (separate issue). Merging to dev.
Savannah Savings merged commit 9af0e36db0 into dev 2026-05-21 19:34:40 +00:00
Sign in to join this conversation.