DEV Community

Discussion on: Securely Automating npm publish with the New npm Automation Tokens

Collapse
 
yoursunny profile image
Junxiao Shi

What prevents an automation token from being stolen and used maliciously without 2FA?

Collapse
 
mithasalman profile image
Salman

Someone pls suggest how secure this is? A malicious dependency could steal envs from process.env. Any way to avoid that?

Collapse
 
appsparkler profile image
Akash

I guess you can create your own private-repository and point to it with encoded access-token.

The encoded token can be decoded and publish to NPM from your private-repository.