Skip to content

Policy Structure

Rui Lima edited this page Jun 5, 2018 · 1 revision

Structure

{
  "project_id":"string",
  "project_name":"string",
  "organization":"string",
  "repo":"string",
  "repo_owner":"string",
  "valid_licenses":["string"],
  "fail":"boolean", 
  "plugin_cache_time":"int",
  "api_cache_time":"int"
}

Definition

project_id: Id of the project to present in the report

project_name: Name of the project to present in the report

organization: The organization this project belongs to (Optional)

repo: The repository in github this project belongs to (Optional)

repo_owner: The owner of the repository this project belongs to (Optional)

valid_license: The name of all valid licenses

fail: Indicates if the build should fail in case a vulnerability is found

plugin_cache_time: Indicates in seconds the amount of time the cache used by the plugin should be considered valid

api_cache_time: Indicates in seconds the amount of time the cache used by the API should be considered valid.

Clone this wiki locally