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
ANYRUN Add Command line parameter #31802
ANYRUN Add Command line parameter #31802
Conversation
Add command line parameter obj_ext_cmd
Add command line parameter
Add command line parameter
Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @adi88d will know the proposed changes are ready to be reviewed. |
Hi @vasilydavydov, thanks for contributing to a Cortex XSOAR supported pack. To receive credit for your generous contribution please follow this link. |
@vasilydavydov |
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.
Hi @vasilydavydov ,
Thank you for your contribution!
Good work :)
- Please bump the pack version in the pack_metadata.json file and add notes describing your changes to a new Release Notes file.
To do that, please run thedemisto-sdk update-release-notes
command - for more information please see: https://xsoar.pan.dev/docs/concepts/demisto-sdk#update-release-notes. - Please attach screenshot or pdf file for this request API documentation
@@ -865,7 +865,7 @@ def run_analysis(args): | |||
files = { | |||
'file': (name, open(file_path, 'rb')) | |||
} | |||
|
|||
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.
revert this
if obj_type == 'file' or obj_type == 'download' : | ||
args['obj_ext_cmd'] = args.get('obj_ext_cmd') |
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.
if obj_type == 'file' or obj_type == 'download' : | |
args['obj_ext_cmd'] = args.get('obj_ext_cmd') | |
if obj_ext_cmd and (obj_type == 'file' or obj_type == 'download'): | |
args['obj_ext_cmd'] = args.get('obj_ext_cmd') |
and add this :
obj_ext_cmd = args.get('obj_ext_cmd')
in line 854 under:
obj_type = args.get('obj_type')
Change minor version
Add command line parameter description to release noter
Update description command line paremeter
Hello,
Pack_metadata.json and the new Release Notes file were updated in current brunch
Screenshot of documentation is here (link<https://any.run/api-documentation/#api-Analysis-PostAnalysis>)
***@***.***
Best regards,
Vasily Davydov | Product Manager | ANY.RUN
Mobile: +995 555 136 849<tel:+995555136849> | ***@***.******@***.***>
From: Adi Daud ***@***.***>
Date: Wednesday, 27 December 2023 at 14:53
To: demisto/content ***@***.***>
Cc: Vasily Davydov ***@***.***>, Mention ***@***.***>
Subject: Re: [demisto/content] ANYRUN Add Command line parameter (PR #31802)
@adi88d requested changes on this pull request.
Hi @vasilydavydov<https://github.com/vasilydavydov> ,
Thank you for your contribution!
Good work :)
* Please bump the pack version in the pack_metadata.json file and add notes describing your changes to a new Release Notes file.
To do that, please run the demisto-sdk update-release-notes command - for more information please see: https://xsoar.pan.dev/docs/concepts/demisto-sdk#update-release-notes.
* Please attach screenshot or pdf file for this request API documentation
________________________________
In Packs/ANYRUN/Integrations/ANYRUN/ANYRUN.py<#31802 (comment)>:
@@ -865,7 +865,7 @@ def run_analysis(args):
files = {
'file': (name, open(file_path, 'rb'))
}
-
+
revert this
________________________________
In Packs/ANYRUN/Integrations/ANYRUN/ANYRUN.py<#31802 (comment)>:
+ if obj_type == 'file' or obj_type == 'download' :
+ args['obj_ext_cmd'] = args.get('obj_ext_cmd')
⬇️ Suggested change
- if obj_type == 'file' or obj_type == 'download' :
- args['obj_ext_cmd'] = args.get('obj_ext_cmd')
+ if obj_ext_cmd and (obj_type == 'file' or obj_type == 'download'):
+ args['obj_ext_cmd'] = args.get('obj_ext_cmd')
and add this :
obj_ext_cmd = args.get('obj_ext_cmd')
in line 854 under:
obj_type = args.get('obj_type')
—
Reply to this email directly, view it on GitHub<#31802 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BE5UTTL3Y2O26RU2SNXCIR3YLP42FAVCNFSM6AAAAABBEFF3NWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOOJXGA2DGOJSHE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@adi88d Doc review completed. |
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
ecc2c91
into
demisto:contrib/vasilydavydov_vasilydavydov-patch-1
* ANYRUN Add Command line parameter (#31802) * update docker --------- Co-authored-by: vasilydavydov <154880461+vasilydavydov@users.noreply.github.com> Co-authored-by: adi88d <adaud@paloaltonetworks.com> Co-authored-by: Adi Daud <46249224+adi88d@users.noreply.github.com>
* ANYRUN Add Command line parameter (#31802) * update docker --------- Co-authored-by: vasilydavydov <154880461+vasilydavydov@users.noreply.github.com> Co-authored-by: adi88d <adaud@paloaltonetworks.com> Co-authored-by: Adi Daud <46249224+adi88d@users.noreply.github.com>
* ANYRUN Add Command line parameter (#31802) * update docker --------- Co-authored-by: vasilydavydov <154880461+vasilydavydov@users.noreply.github.com> Co-authored-by: adi88d <adaud@paloaltonetworks.com> Co-authored-by: Adi Daud <46249224+adi88d@users.noreply.github.com>
* ANYRUN Add Command line parameter (#31802) * update docker --------- Co-authored-by: vasilydavydov <154880461+vasilydavydov@users.noreply.github.com> Co-authored-by: adi88d <adaud@paloaltonetworks.com> Co-authored-by: Adi Daud <46249224+adi88d@users.noreply.github.com>
Contributing to Cortex XSOAR Content
Make sure to register your contribution by filling the contribution registration form
The Pull Request will be reviewed only after the contribution registration form is filled.
Status
Related Issues
fixes: link to the issue
Description
A few sentences describing the overall goals of the pull request's commits.
Must have