I am getting this error ##[error]Cannot read property 'orgToken' of undefined
when I tried running this task in azure pipelines
` - task: WhiteSource@21
displayName: 'Task - Show Scan Results'
inputs:
cwd: '${{ parameters.CurrentWorkingDirectory }}'
projectName: '${{ parameters.ProjectName }}'
configuration: |
apiKey='${{ parameters.ApiKey }}'
userKey='${{ parameters.userKey }}'
wss.url='${{ parameters.Url }}'
productName ='${{ parameters.ProductName }}'
projectName='${{ parameters.ProjectName }}'
enableImpactAnalysis=false
requireKnownSha1=true
nuget.resolveDependencies=true
nuget.runPreStep=true
npm.resolveDependencies=true
npm.runPreStep=true
php.resolveDependencies=true
php.runPreStep=true
fileSystemScan=false
generateProjectDetailsJson=true
generateScanReport=true
scanReportFilenameFormat='${{ parameters.ScanReportFileNameFormat }}'
excludes='${{ parameters.Excludes }}'
projectTag='${{ parameters.projectTag }}'
followSymbolicLinks=true
forceUpdate.failBuildOnPolicyViolation=true
checkPolicies=true
forceCheckAllDependencies=true
forceUpdate=true
scanComment='${{ parameters.ScanComment }}'
sendLogstoWss=true
requesterEmail='${{ parameters.RequesterEmail }}'
projectVersion='${{ parameters.ProjectVersion }}'
log.level='${{ parameters.LogLevel }}'
`
this task is from a yaml template and when I tried to use that template I got that error enter image description here
I added the userKey since I thought that might've been the cause of the error
I tried to directly put the value of the apiKey instead of using parameters but that didn't work either
I tried looking for the "orgToken" in the documentations but I didn't appear in the list of valid parameters in there.
It used to work before I used it as a template but after that things went wrong.