cisagov / kali-packer

This project can be used to create AMIs based on Kali Linux, a penetration testing distribution.
Creative Commons Zero v1.0 Universal
16 stars 6 forks source link

AMI fails to build #96

Closed jsf9k closed 2 years ago

jsf9k commented 2 years ago

πŸ› Summary

The AMI fails to build. The npm portion of the BloodHound tool fails.

To reproduce

  1. Create a prerelease of the Kali AMI from this repo.
  2. Watch the build workflow fail.

Expected behavior

The build workflow should succeed.

Any helpful log output or screenshots

2022-02-17T20:57:40Z:     amazon-ebs: TASK [Build BloodHound] ********************************************************
2022-02-17T20:57:40Z:     amazon-ebs: fatal: [default]: FAILED! => {"changed": true, "cmd": ["npm", "run", "linuxbuild"], "delta": "0:00:00.380912", "end": "2022-02-17 20:57:40.928103", "msg": "non-zero return code", "rc": 1, "start": "2022-02-17 20:57:40.547191", "stderr": "npm ERR! Missing script: \"linuxbuild\"\nnpm ERR! \nnpm ERR! To see a list of scripts, run:\nnpm ERR!   npm run\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /root/.npm/_logs/2022-02-17T20_57_40_741Z-debug-0.log", "stderr_lines": ["npm ERR! Missing script: \"linuxbuild\"", "npm ERR! ", "npm ERR! To see a list of scripts, run:", "npm ERR!   npm run", "", "npm ERR! A complete log of this run can be found in:", "npm ERR!     /root/.npm/_logs/2022-02-17T20_57_40_741Z-debug-0.log"], "stdout": "", "stdout_lines": []}
jsf9k commented 2 years ago

The failure is due to an upstream change. The npm command necessary to build BloodHound changed recently, via BloodHoundAD/BloodHound#507.