Deploy Key seems to not be used when deploying

2:18:13 PM: fatal: Could not read from remote repository.
2:18:13 PM: Please make sure you have the correct access rights

So I generated a deploy key on netlify site settings and added it to the private submodule. or should it be on the private repo? i’m not sure which repo i should apply the deploy key, so i added it to the private submodule instead. is this wrong?

EDIT: according to some research i should be adding the generated deploy key to my submodule (which i did). just to be sure my npm dep also has it using ssh “git+ssh://” format what am i missing?


The deploy key will not be available inside the build environment and it used only for git submodules. If you have a private npm package, you’ll want to view the post about that here. Let me know if that helps.