This is a .NET Core NuGet package that calls the Veracode XML & REST APIs. It then hydrates C# models from the responses so they can be used in your application.
This is not an official Veracode product!
XML APIs
- Read, Create, Update & Delete Apps, Builds, Users, Teams
- Read Sandboxes, Flaws, Modules, Uploaded Files, Entry Points & Callstacks
- Prescan file upload and scan starting
REST APIs
- Read, Create, Update & Delete Policies
The package can be included via NuGet Package Manager. The package is here
The wrapper requires your Veracode API credentials. Please view Veracode help to find out how to get your credentials how to get your credentials from Veracode Platform.
For example:
var veracodeConfig = new VeracodeConfig {
Apiid = "__YOUR_API_ID_THAT_WAS_RETRIEVED_FROM_SECURE_STORAGE__",
ApiKey = "__YOUR_API_KEY_THAT_WAS_RETRIEVED_FROM_SECURE_STORAGE__"
}
var options = Options.Create(veracodeConfig)
var veracodeRepository = new VeracodeRepository(options);
var apps = veracodeRepository.GetAllApps();
Please do not hardcode your credentials! I would recommend whatever application you build reads in the credentials from the .veracode/credentials file
The Integration Tests suite here has code samples for using the NuGet wrapper.
Please also check out my other Veracode integration projects!