-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add helloPack pack with HelloPackScript script #44125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| def main(): | ||
| print("hello") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing error handling and incorrect output mechanism. |
||
|
|
||
|
|
||
| if __name__ in ("__main__", "__builtin__", "builtins"): | ||
| main() | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| commonfields: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The script YAML is missing required top-level fields: For example: dockerimage: demisto/python3:x.y.z
fromversion: 6.0.0
tests:
- No tests |
||
| id: HelloPackScript | ||
| version: -1 | ||
| name: HelloPackScript | ||
| script: '-' | ||
| type: python | ||
| subtype: python3 | ||
| comment: A simple hello script for testing | ||
| enabled: true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The mandatory key |
||
| "name": "helloPack", | ||
| "description": "Test pack for automated PR testing", | ||
| "support": "xsoar", | ||
| "currentVersion": "1.0.0", | ||
| "author": "Cortex XSOAR", | ||
| "url": "https://www.paloaltonetworks.com/cortex", | ||
| "email": "", | ||
| "categories": [ | ||
| "Utilities" | ||
| ], | ||
| "tags": [], | ||
| "useCases": [], | ||
| "keywords": [], | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The vendor name (e.g., 'Cortex') must be included in the |
||
| "marketplaces": [ | ||
| "xsoar", | ||
| "marketplacev2", | ||
| "platform" | ||
| ] | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
main()function.main()function.