Checkmarx / ast-vscode-extension

The Checkmarx One Visual Studio Code plugin (extension) enables you to import results from a Checkmarx One scan directly into your VS Code console. You can view the vulnerabilities that were identified in your source code and navigate directly to the vulnerable code in the editor.
https://marketplace.visualstudio.com/items?itemName=checkmarx.ast-results
Apache License 2.0
11 stars 6 forks source link

ast-cli-javascript-wrapper issue(Prompt extension) #785

Closed guy-ps closed 7 months ago

guy-ps commented 7 months ago

Describe the bug

I've been having issues with the dependency ast-cli-javascript-wrapper After I cloned the repo, it could not be installed from the registry(by running npm install), and when I installed it from source, for some reason inside the ast-vscode-extension, it still throws erorrs: image

Expected behavior

I will be able to build ast-vscode-extension from source

Actual behavior

I can't install the dependency ast-cli-javascript-wrapper from the registry, and after I installed it from GitHub(still version 0.0.85), the code still couldn't run.

Steps to reproduce

  1. Clone the repo
  2. Run npm install
  3. After it does not work install from source
  4. See error

Environment

Additional comments

I encountered this issue while working on integrating Prompt security's extension to ast-vscode-extension

github-actions[bot] commented 7 months ago

Internal Jira issue: AST-37045

guy-ps commented 7 months ago

Thank you @tiagobcx the solution you suggested worked

guy-ps commented 7 months ago

Thank you, it worked, I closed the issue

On 7 Mar 2024, at 17:56, Tiago Baptista @.***> wrote:

Hi @guy-ps https://github.com/guy-ps, you need to add/create a .npmrc file with the following content :

//npm.pkg.github.com/:_authToken=YOUR_GH_TOKEN @checkmarxdev:registry=https://npm.pkg.github.com This should allow you to get our Checkmarx javascript wrapper.

— Reply to this email directly, view it on GitHub https://github.com/Checkmarx/ast-vscode-extension/issues/785#issuecomment-1983823997, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGMFJ75BID53XL4G5A773YTYXCE2FAVCNFSM6AAAAABELFSPMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBTHAZDGOJZG4. You are receiving this because you were mentioned.

tiagobcx commented 7 months ago

Hi @guy-ps, you need to add/create a .npmrc file with the following content :

//npm.pkg.github.com/:_authToken=YOUR_GH_TOKEN
@checkmarxdev:registry=https://npm.pkg.github.com

This should allow you to get our Checkmarx javascript wrapper.

tiagobcx commented 7 months ago

Thank you, it worked, I closed the issue On 7 Mar 2024, at 17:56, Tiago Baptista @.***> wrote: Hi @guy-ps https://github.com/guy-ps, you need to add/create a .npmrc file with the following content : //npm.pkg.github.com/:_authToken=YOUR_GH_TOKEN @CheckmarxDev:registry=https://npm.pkg.github.com This should allow you to get our Checkmarx javascript wrapper. — Reply to this email directly, view it on GitHub <#785 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGMFJ75BID53XL4G5A773YTYXCE2FAVCNFSM6AAAAABELFSPMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBTHAZDGOJZG4. You are receiving this because you were mentioned.

Nice !