Welcome to the Auth0 Community!
When using Node 18 in Actions, you must add the modules as a dependency.
See below:
For a list of all the available modules, please check out Can I require? - Search which node modules you can use in webtask.io
Thanks,
Rueben