vsankar821763 (Community Member) asked a question.

agent based scan in jenkins using powershell . SCA scan is getting successfull and data is getting posted to veracode but PR is not getting generated

I am trying to create a pull request .. Appreciate if you can say me what configuration are needed for me to create a pull request

 

below is the samplescript which i tried with

 

node(){

 checkout scm 

  

  def stdout = powershell(returnStdout: true, script: '''

   $env:SRCCLR_API_TOKEN="xxxxxxxxxxxxxxxxxvh6zGsWaQaFRxWwwqvA"

    $env:SRCCLR_SCM_TYPE="GITHUBENTERPRISE"

    $env:SRCCLR_SCM_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxx"

    $env:SRCCLR_SCM_URL="https://github.domain.net

   iex ((New-Object System.Net.WebClient).DownloadString('https://download.srcclr.com/ci.ps1'));

    

   srcclr scan --debug --json="vulnerablity.json" |Out-File -FilePath "vulnerability.json"

  ''')

   

 

 

 


Topics (4)

No articles found
Loading

Ask the Community

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