From 681dd960f77bc403cf5b2c428904ed5be1c3fb4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Praszmo?= Date: Wed, 27 Jul 2022 14:46:10 +0200 Subject: [PATCH] Bump karton-core requirement (#20) --- .github/workflows/test.yml | 2 +- Dockerfile | 2 +- karton/yaramatcher/yaramatcher.py | 2 +- requirements.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d3dc8e..71b3ca2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - minor: [7, 8, 9] + minor: [8, 9, 10] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v1 diff --git a/Dockerfile b/Dockerfile index c250ee3..8900c39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.7 +FROM python:3.9 WORKDIR /app/service COPY ./requirements.txt ./requirements.txt diff --git a/karton/yaramatcher/yaramatcher.py b/karton/yaramatcher/yaramatcher.py index 015ce85..8f32f92 100644 --- a/karton/yaramatcher/yaramatcher.py +++ b/karton/yaramatcher/yaramatcher.py @@ -177,7 +177,7 @@ def process_joesandbox(self, task: Task) -> List[str]: return yara_matches - def process(self, task: Task) -> None: # type: ignore + def process(self, task: Task) -> None: headers = task.headers sample = task.get_resource("sample") yara_matches: List[str] = [] diff --git a/requirements.txt b/requirements.txt index b844523..18bc4af 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -karton-core>=4.2.0,<5.0.0 +karton-core>=5.0.0,<6.0.0 yara-python>=4.0.2