Skip to content
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

ANY.RUN: Bugfix - Fix type validation errors in get_intelligence action #3

Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/phantomcyber/dev-cicd-tools
rev: v1.13
rev: v1.18
hooks:
- id: org-hook
- id: package-app-dependencies
- repo: https://github.com/Yelp/detect-secrets
rev: v1.2.0
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--no-verify']
2 changes: 1 addition & 1 deletion anyrun.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"product_version_regex": ".*",
"publisher": "ANYRUN FZCO",
"license": "Copyright (c) ANYRUN FZCO, 2024",
"app_version": "1.0.1",
"app_version": "1.1.0",
"utctime_updated": "2024-03-01T10:28:44.583548Z",
"package_name": "phantom_any.run",
"main_module": "anyrun_connector.py",
Expand Down
2 changes: 1 addition & 1 deletion anyrun_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def _handle_get_intelligence(self, param):

# Input validation
try:
data = {key: value for key, value in param.items()
data = {key: str(value) for key, value in param.items()
if (key not in ["context"] and value not in ["", 0])}
data = TI.from_dict(data)
except (AttributeError, TypeError, ValueError) as exc:
Expand Down
4 changes: 2 additions & 2 deletions manual_readme_content.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ This connector comes with some additional python 3 libraries, that it depends on
- multidict-6.0.5 (Apache License 2.0, Copyright 2016 Andrew Svetlov and aio-libs contributors)
- yarl-1.9.4 (Apache License 2.0, Copyright 2016-2021, Andrew Svetlov and aio-libs team)
- frozenlist-1.4.1 (Apache License 2.0, Copyright 2013-2019 Nikolay Kim and Andrew Svetlov)
- aiohttp-3.9.3 (Apache License 2.0, Copyright aio-libs contributors)
- anyrun_py-0.1.0
- aiohttp-3.9.5 (Apache License 2.0, Copyright aio-libs contributors)
- anyrun_py-0.1.0
1 change: 1 addition & 0 deletions release_notes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**Unreleased**
* Fixed type validation errors in 'get intelligence' action
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aiohttp==3.9.5
aiosignal==1.3.1
async_timeout==4.0.3
attrs==23.2.0
frozenlist==1.4.1
multidict==6.0.5
yarl==1.9.4
frozenlist==1.4.1
aiohttp==3.9.5
Loading