ValidateContent
Base Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 5.5.0 and later.
Runs validation and linting using the Demisto SDK on content items, such as integrations, automations and content packs. This automation script is used as part of the content validation that runs as part of the contribution flow.
#
Script DataName | Description |
---|---|
Script Type | python3 |
Cortex XSOAR Version | 5.5.0 |
#
InputsArgument Name | Description |
---|---|
filename | Name of the file to validate. |
data | Base64 encoded contents of the file to validate. |
entry_id | ID of War Room file entry for the ZIP content pack or the integration/automation YAML. |
use_system_proxy | Use system proxy settings to download required models from GitHub. |
trust_any_certificate | Trust any certificate (not secure) to download required models from GitHub. |
#
OutputsPath | Description | Type |
---|---|---|
ValidationResult.Name | Name of validated item. | String |
ValidationResult.Error | The validation error message. | String |
ValidationResult.Line | The code line number in which the error was found in the lint. | String |
#
Script Example!ValidateContent entry_id=G2SUaH9ZPmfw7QHWQNk2pa@6
#
Context Example#
Human Readable Output#
Validation ResultsName | Error | Line |
---|---|---|
MyScript | The docker image tag is not the latest numeric tag, please update it. | |
MyScript | test for membership should be 'not in' | 44 |