WhiteSource scanner wrapper for Azure DevOps
This task wraps up WhiteSource scanner configuration in Powershell, by executing Powershell module, published at NuGet
For reusability reason, powershell module is published as NuGet package, sources could be reviewed at https://github.com/akuryan/Powershell.Modules/tree/master/src/Scanning/WhiteSource/tools
Install extension at your Azure DevOps instance and configure it.
Before executing this task - restore NuGet/npm/yarn/whatever packages you have (so, your pipeline must have this steps preconfigured).
This extension is built using WhiteSource unified agent, and expects that you have either configuration file ready (you can get it here) or it will configure download and use default one.
Set up extension by filling required fields. If you wish to tailor down configuration completely - download config file) and store it in repository. If you can go with defaults - let extension to download it.
Manual package preparation
Install NuGet package in temp directory. Then copy
tools folder of installed package to
Then, you'll be able to compile installable package for VSTS/TFS
rem Remove all possible installations of previous module versions (if any)
for /D %f in ("%temp%\Scanners-WhiteSource.PowerShell*") do rmdir %f /s /q
rem Install module from nuget
nuget install Scanners-WhiteSource.PowerShell -OutputDirectory %Temp%
rem Create directory for module
rem Copy module to directory
xcopy tools\* yourPathHere\ps_modules\Scanners-WhiteSource.PowerShell\tools\ /F /S /Q /Y