
vsankar821763 (Community Member) asked a question.
I have couple of question
how can i get the scan results in Json File with SRCCLR Jenkins scan. For Shell i am using "curl -sSL https://download.sourceclear.com/ci.sh | SRCCLR_CI_JSON=1 sh > vulnerability.json" Please share me the exact equivalent for Powershell ...
FYI : I tried the below for powershell but JSON size is outgrowing much not sure if that is right
iex ((New-Object System.Net.WebClient).Do
wnloadString('https://download.srcclr.com/ci.ps1')); srcclr scan --json="vulnerablity.json" |Out-File -FilePath="vulnerability.json"
Is there a way to create a pull request for Agent scan result, I saw an informative video explaining the same , but not sure how can i do that when running the same in Jenkins integration since i don't see agent.yml file anywhere . Appreciate if i can get detailed steps on how to implement the same . Thanks in advance
.png)
Hello @vsankar821763 (Community Member) ,
If you look in the help command from within the srcclr agent itself, there is a section that shows the option --json [String] and it's description, so you should be able to use the following format regardless of the environment that you are running the agent in:
Srcclr scan –-json=”/path/to/filename.json”
In regards to your pull request, we currently have any example documents for doing this in a Jenkinsfile, but there is a Jenkins plugin that lets you use YAML files in Jenkins pipelines: https://plugins.jenkins.io/pipeline-as-yaml/
If the information we’ve provided you has helped resolve your challenge (or answered your question), we would appreciate it if you could mark the response that was helpful with “Select as Best”. This will help other Community members who come across your question as a similar challenge they might be facing and your best answer will help them find the right solution as well.
Jason
Community Support Engineer