File tree Expand file tree Collapse file tree 4 files changed +9
-30
lines changed
api_app/analyzers_manager/file_analyzers Expand file tree Collapse file tree 4 files changed +9
-30
lines changed Original file line number Diff line number Diff line change 1
1
import json
2
2
import logging
3
3
4
- from api_app .analyzers_manager .exceptions import AnalyzerRunException
5
-
6
- try :
7
- import die
8
- except ImportError :
9
- die = None
4
+ import die
10
5
11
6
from api_app .analyzers_manager .classes import FileAnalyzer
12
7
from tests .mock_utils import MockUpResponse
@@ -22,20 +17,12 @@ def update(self):
22
17
def run (self ):
23
18
logger .info (f"Running DIE on { self .filepath } for { self .md5 } " )
24
19
25
- if die :
26
- json_report = die .scan_file (
27
- self .filepath ,
28
- die .ScanFlags .RESULT_AS_JSON ,
29
- str (die .database_path / "db" ),
30
- )
31
- result = json .loads (json_report )
32
- else :
33
- message = "DIE package not imported because incompatible in ARM"
34
- self .report .errors .append (message )
35
- result = {"errors" : message }
36
- raise AnalyzerRunException (message )
37
-
38
- return result
20
+ json_report = die .scan_file (
21
+ self .filepath ,
22
+ die .ScanFlags .RESULT_AS_JSON ,
23
+ str (die .database_path / "db" ),
24
+ )
25
+ return json .loads (json_report )
39
26
40
27
@staticmethod
41
28
def mocked_docker_analyzer_get (* args , ** kwargs ):
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ RUN apt-get update \
48
48
&& pip3 install --no-cache-dir --upgrade pip
49
49
50
50
COPY requirements/project-requirements.txt $PYTHONPATH/project-requirements.txt
51
- COPY requirements/amd-only-requirements.txt $PYTHONPATH/amd-only-requirements.txt
52
51
COPY requirements/certego-requirements.txt $PYTHONPATH/certego-requirements.txt
53
52
WORKDIR $PYTHONPATH
54
53
@@ -70,11 +69,6 @@ RUN touch ${LOG_PATH}/django/api_app.log ${LOG_PATH}/django/api_app_errors.log \
70
69
# download github stuff
71
70
&& ${PYTHONPATH}/api_app/analyzers_manager/repo_downloader.sh
72
71
73
- # last step cause there is an if that could invalidate the cache
74
- RUN if [[ "$TARGETARCH" == "amd64" ]]; \
75
- then pip3 install --no-cache-dir --compile -r amd-only-requirements.txt; \
76
- else echo "skipping installation of AMD only requirements" ; fi
77
-
78
72
FROM backend-build
79
73
80
74
COPY --from=frontend-build /build /var/www/reactapp
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ dataclasses==0.6
29
29
# https://github.com/advisories/GHSA-q4qm-xhf9-4p8f
30
30
# unpatched CVE: noproblem, we just use this for debugging purposes
31
31
flower==2.0.0
32
- uWSGI==2.0.22
32
+ uWSGI==2.0.28
33
33
uwsgitop==0.12
34
34
whitenoise==6.9.0
35
35
daphne==4.1.0
@@ -89,6 +89,7 @@ pylnk3==0.4.2
89
89
androguard==3.4.0a1 # version >=4.x of androguard raises a dependency conflict with quark-engine==25.1.1
90
90
wad==0.4.6
91
91
debloat==1.6.4
92
+ die-python==0.4.0
92
93
93
94
# httpx required for HTTP/2 support (Mullvad DNS rejects HTTP/1.1 with protocol errors)
94
95
httpx[http2]==0.28.1
You can’t perform that action at this time.
0 commit comments