diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 6f15b22..131c639 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e6c658..c1a4e18 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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'] diff --git a/LICENSE b/LICENSE index 7068332..2844e38 100644 --- a/LICENSE +++ b/LICENSE @@ -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. \ No newline at end of file + limitations under the License. diff --git a/anyrun.json b/anyrun.json index 8bd6299..2c22794 100644 --- a/anyrun.json +++ b/anyrun.json @@ -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", @@ -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", @@ -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" } ] } diff --git a/anyrun_connector.py b/anyrun_connector.py index 8db3215..74f7239 100755 --- a/anyrun_connector.py +++ b/anyrun_connector.py @@ -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: diff --git a/logo_anyrun.svg b/logo_anyrun.svg index 4e924e7..be6f22d 100755 --- a/logo_anyrun.svg +++ b/logo_anyrun.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/manual_readme_content.md b/manual_readme_content.md index 80d1773..50630d6 100755 --- a/manual_readme_content.md +++ b/manual_readme_content.md @@ -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 \ No newline at end of file + - aiohttp-3.10.2 (Apache License 2.0, Copyright aio-libs contributors) + - anyrun_py-0.1.1 diff --git a/release_notes/unreleased.md b/release_notes/unreleased.md index fbcb2fd..1b7418a 100644 --- a/release_notes/unreleased.md +++ b/release_notes/unreleased.md @@ -1 +1,2 @@ **Unreleased** +* Fixed type validation errors in 'get intelligence' action diff --git a/requirements.txt b/requirements.txt index 20d96d6..b8a82b7 100755 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/wheels/anyrun_py-0.1.0-py3-none-any.whl b/wheels/anyrun_py-0.1.0-py3-none-any.whl deleted file mode 100755 index a03feb6..0000000 Binary files a/wheels/anyrun_py-0.1.0-py3-none-any.whl and /dev/null differ diff --git a/wheels/anyrun_py-0.1.1-py3-none-any.whl b/wheels/anyrun_py-0.1.1-py3-none-any.whl new file mode 100644 index 0000000..208e637 Binary files /dev/null and b/wheels/anyrun_py-0.1.1-py3-none-any.whl differ diff --git a/wheels/py3/aiohappyeyeballs-2.4.0-py3-none-any.whl b/wheels/py3/aiohappyeyeballs-2.4.0-py3-none-any.whl new file mode 100644 index 0000000..8966681 Binary files /dev/null and b/wheels/py3/aiohappyeyeballs-2.4.0-py3-none-any.whl differ diff --git a/wheels/py3/anyrun_py-0.1.0-py3-none-any.whl b/wheels/py3/anyrun_py-0.1.0-py3-none-any.whl deleted file mode 100755 index a03feb6..0000000 Binary files a/wheels/py3/anyrun_py-0.1.0-py3-none-any.whl and /dev/null differ diff --git a/wheels/py3/anyrun_py-0.1.1-py3-none-any.whl b/wheels/py3/anyrun_py-0.1.1-py3-none-any.whl new file mode 100644 index 0000000..208e637 Binary files /dev/null and b/wheels/py3/anyrun_py-0.1.1-py3-none-any.whl differ diff --git a/wheels/py39/aiohttp-3.10.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl b/wheels/py39/aiohttp-3.10.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl new file mode 100644 index 0000000..5b59d79 Binary files /dev/null and b/wheels/py39/aiohttp-3.10.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl differ diff --git a/wheels/py39/aiohttp-3.9.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl b/wheels/py39/aiohttp-3.9.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl deleted file mode 100755 index 2de5b72..0000000 Binary files a/wheels/py39/aiohttp-3.9.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl and /dev/null differ