Skip to content

CLI tool to generate an authorization header for Veracode APIs using API ID and Key.

License

Notifications You must be signed in to change notification settings

brian1917/vcodeHMAC-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Veracode HMAC CLI

Description

CLI tool to generate an authorization header for Veracode APIs using API ID and Key. Given an HTTP method and URL, and the location of your Veracode API credentials file, you will get the value of an Authorization header printed out for piping into curl, httpie, or other scripting uses.

Executables

Executables for Windows, Mac, and Linux are available in the releases section of this repository: https://github.com/brian1917/vcodeHMAC-CLI/releases.

Parameters

  1. -credsFile: path to the file with Veracode credentials (see details below)
  2. -url: The URL for the request (e.g., https://analysiscenter.veracode.com/api/5.0/detailedreport.do?build_id=123456)
  3. -method: HTTP Method (e.g., GET, POST, etc.)

Credentials File

Must be structured like the following:

[DEFAULT]
veracode_api_key_id = ID HERE
veracode_api_key_secret = SECRET HERE

Third-party Packages

github.com/brian1917/vcodeHMAC (https://godoc.org/github.com/brian1917/vcodeHMAC)

About

CLI tool to generate an authorization header for Veracode APIs using API ID and Key.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages