LamdaZero (Community Member) asked a question.

What are the supported yarn versions for the srcclr agent?

I am trying to run a software composition analysis scan on my repository. I'm on windows powershell, so the steps I took to creating an agent for scanning are highlighted here: Install the Veracode SCA Agent with PowerShell • Veracode Software Composition Analysis • Reader

 

After following those steps, I ran the following scan command:

srcclr scan --allow-dirty --skip-vms

 

The scan fails with the following error:

Unexpected level of indentation: 6. Line: '   optional: true'.

 

For some more context, I updated some yarn packages to deal with vulnerabilities in my repo and also the actual yarn framework itself (2.4 to the latest version). It looks like this is an issue with the generated yarn.lock file i.e. the indentation of the `optional: true` flag is incorrect.

 

I believe the yarn parser built into srcclr may be running on an older version of yarn and thus can't read the lock file. I'm able to run the `yarn` command and that installs packages just fine, so I don't believe there's anything wrong with the lock file.

 

Finally, this question has been asked before, i.e. Community (veracode.com) but it looks like the thread has been inactive for quite some time. If anyone has any advice on how to deal with this, or if anyone can create a ticket for the Veracode team related to this issue, it would be greatly appreciated.

 

Thanks so much!


LamdaZero likes this.
  • Hello @LamdaZero (Community Member)​ ,

     

    Thank you for reaching out to the Community.

     

    With this issue, I would recommend opening a support ticket. You can open a support ticket within the Community. Simply click on your profile on the top right side of the screen and select "Contact Support". Or click on the link below.

     

    https://community.veracode.com/s/contact-support

     

    Please provide any logs and or screen sots when opening this ticket.

     

    Thank you,

    Steven

    Veracode Support Engineer

    Expand Post

Topics (3)

No articles found
Loading

Ask the Community

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