Skip to content

False positive found npm access token #1153

Closed

Description

[With vsce v3.4.1]

Here is my use case. I am requiring typescript into a javascript extension.

const ts = require('typescript');

so that I can use things like ts.isArrowFunction(node.initializer).

and have added typescript as a dependency. When I try to publish many "secrets" are flagged like

ERROR  Potential security issue detected: Your extension package contains sensitive information that should not be published. Please remove these secrets before packaging.

  found npm access token: npm_i_save_dev_types_Slash... [npm]
  node_modules\typescript\lib\_tsc.js#6552:84-6552:124

  found npm access token: npm_i_save_dev_types_Slash... [npm]
  node_modules\typescript\lib\zh-cn\diagnosticMessages.generated.json#1709:8-1709:48

That first link points to this in the node_modules\typescript\lib\_tsc.js file:

npm_i_save_dev_types_Slashjest_or_npm_i_

The second error link points to

npm_i_save_dev_types_Slash_1_if_it_exists

They all seem to be diagnostic message related. I assume these are all false positives?

Originally posted by ArturoDent in #1147

Activity

  1. added
    bug
    on May 21, 2025
  2. ArturoDent commented on Jun 4, 2025

    @ArturoDent

    Thank you, works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions