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 all 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
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Linting
on: [push, pull_request]
jobs:
lint:
lint:
# Run per push for internal contributers. This isn't possible for forked pull requests,
# so we'll need to run on PR events for external contributers.
# String comparison below is case insensitive.
Expand Down
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 LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
12 changes: 8 additions & 4 deletions 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 Expand Up @@ -2797,15 +2797,19 @@
},
{
"module": "anyrun",
"input_file": "wheels/anyrun_py-0.1.0-py3-none-any.whl"
"input_file": "wheels/anyrun_py-0.1.1-py3-none-any.whl"
}
]
},
"pip39_dependencies": {
"wheel": [
{
"module": "aiohappyeyeballs",
"input_file": "wheels/py3/aiohappyeyeballs-2.4.0-py3-none-any.whl"
},
{
"module": "aiohttp",
"input_file": "wheels/py39/aiohttp-3.9.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
"input_file": "wheels/py39/aiohttp-3.10.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl"
},
{
"module": "aiosignal",
Expand Down Expand Up @@ -2837,7 +2841,7 @@
},
{
"module": "anyrun",
"input_file": "wheels/py3/anyrun_py-0.1.0-py3-none-any.whl"
"input_file": "wheels/py3/anyrun_py-0.1.1-py3-none-any.whl"
}
]
}
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
2 changes: 1 addition & 1 deletion logo_anyrun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.10.2 (Apache License 2.0, Copyright aio-libs contributors)
- anyrun_py-0.1.1
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.10.2
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
Binary file removed wheels/anyrun_py-0.1.0-py3-none-any.whl
Binary file not shown.
Binary file added wheels/anyrun_py-0.1.1-py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file removed wheels/py3/anyrun_py-0.1.0-py3-none-any.whl
Binary file not shown.
Binary file added wheels/py3/anyrun_py-0.1.1-py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading