Run ...-actions/...@main
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'tunnel'
Require stack:
- /runner/_work/_actions/...-actions/.../main/dist/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.9669 (/runner/_work/_actions/...-actions/.../main/dist/index.js:7774:33)
    at __nccwpck_require__ (/runner/_work/_actions/...-actions/.../main/dist/index.js:7897:43)
    at Object.6255 (/runner/_work/_actions/...-actions/.../main/dist/index.js:1029:29)
    at __nccwpck_require__ (/runner/_work/_actions/...-actions/.../main/dist/index.js:7897:43)
    at Object.8041 (/runner/_work/_actions/...-actions/.../main/dist/index.js:497:23)
    at __nccwpck_require__ (/runner/_work/_actions/...-actions/.../main/dist/index.js:7897:43) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/runner/_work/_actions/...-actions/.../main/dist/index.js'
  ]
}

사내 깃헙에서 custom action을 만들었는데 tunnel 모듈을 찾을 수 없다고 나옵니다.

Self-hosted runner를 사용중인데, proxy를 사용하면 tunnel 라이브러리를 직접 추가해줘야 하는 것 같네요

 

npm install tunnel

추가하면 끝입니다 (https://www.npmjs.com/package/tunnel)

반응형

« 1 2 3 4 5 6 7 8 9 ··· 19 »