bitwarden / sm-action

Github Action for Secrets Manager
GNU General Public License v3.0
48 stars 6 forks source link

Not working for ARM64 arch #115

Open Siltaz opened 5 months ago

Siltaz commented 5 months ago
/home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/binding.js:216
    throw loadError;
    ^

Error: Cannot find module '@bitwarden/sdk-napi-linux-arm64-gnu'
Require stack:
- /home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/binding.js
- /home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/dist/bitwarden_client/index.js
- /home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/dist/index.js
- /home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:[9](https://github.com/FiberApps/reusable-workflows/actions/runs/9212059325/job/25342857998#step:3:10)01:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/binding.js:187:31)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:[10](https://github.com/FiberApps/reusable-workflows/actions/runs/9212059325/job/25342857998#step:3:11))
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:[11](https://github.com/FiberApps/reusable-workflows/actions/runs/9212059325/job/25342857998#step:3:12)15:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/binding.js',
    '/home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/dist/bitwarden_client/index.js',
    '/home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/dist/index.js',
    '/home/ubuntu/actions-runner/_work/_actions/bitwarden/sm-action/v2/dist/index.js'
  ]
}

Node.js v20.8.1
pshirshov commented 1 week ago

Same here.

Run bitwarden/sm-action@v2
/run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/binding.js:216
    throw loadError;
    ^

Error: Cannot find module '@bitwarden/sdk-napi-linux-arm64-gnu'
Require stack:
- /run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/binding.js
- /run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/dist/bitwarden_client/index.js
- /run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/dist/index.js
- /run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/binding.js:187:31)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/binding.js',
    '/run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/dist/bitwarden_client/index.js',
    '/run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/node_modules/@bitwarden/sdk-napi/dist/index.js',
    '/run/github-runner/izumi/_actions/bitwarden/sm-action/v2/dist/index.js'
  ]
}