SMcCormick148888 (Community Member) asked a question.

Veracode Greenlight scan in Visual Studio Code for React app

I am trying to scan files/folders in  Visual Studio Code for a javascript/typescript React application. Downloaded the plugin (fine). put the credentials in the .veracode folder (fine, I think) but I do not see the proper "v" icon. I do get the "Scan with Greenlight" menu option on a a right click. When I select that for a file or folder I get: "Veracode Greenlight could not scan [file here] becasue it does not contain any code. Select a valid file and try again." Also a warning popsup in the notifications that says "Veracode Greenlight scan failed due to connection problems. Verify your connection and try again." Anyone have any insights into the potential problem? did I miss a step?


  • SMcCormick148888 (Community Member)

    Thanks Shuning! I verified the the API ID and Key (I am using them in Intellij for my Veracode scans and it is working like a charm). I was attempting to check both typescript (.TSX) and javascript files (.JS), which I believe are supported. I should clarify that this is for VS Code, not straight Visual Studio. The link I used to install and attempt the scan was: https://help.veracode.com/r/c_scanning_with_vs_code.

     

    I was able to scan my files by zipping up my "src" directory and scanning it directly in Veracode, which worked fine.

     

    Thanks,

     

    Stephen

    Expand Post
    Selected as Best
  • Hi @SMcCormick148888 (Community Member)​ - thank you for your questions! I connected with @Brian B., Veracode Support (Veracode, Inc.)​ on the Veracode support team and here is his feedback:

     

    Let us know if this helps!

    Expand Post
    • SMcCormick148888 (Community Member)

      Thanks Shuning! I verified the the API ID and Key (I am using them in Intellij for my Veracode scans and it is working like a charm). I was attempting to check both typescript (.TSX) and javascript files (.JS), which I believe are supported. I should clarify that this is for VS Code, not straight Visual Studio. The link I used to install and attempt the scan was: https://help.veracode.com/r/c_scanning_with_vs_code.

       

      I was able to scan my files by zipping up my "src" directory and scanning it directly in Veracode, which worked fine.

       

      Thanks,

       

      Stephen

      Expand Post
      Selected as Best

Topics (2)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.