Open artzhel opened 1 year ago
Hi everyone! I'm try to use mobsf github action workflow on self-hosted runner and have some error's. Could help me please with resolving of this error's?
Run fundacaocerti/mobsf-action@96f53daa4d68a2caaeb5caf23ded96a10ebaf87b
env:
INPUT_FILE_NAME: /runner/_work/*NDA* SCAN_TYPE: apk OUTPUT_FILE_NAME: mobsf-report
/usr/local/bin/docker run --name e22689a8968ce8f24dafb05394106afbf671_af99d8 --label 60e226 --workdir /github/workspace --rm -e "INPUT_FILE_NAME" -e "SCAN_TYPE" -e "OUTPUT_FILE_NAME" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_EVENT_PATH" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "GITHUB_ACTION" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/runner/_work/_temp/_github_home":"/github/home" -v "/runner/_work/_temp/_github_workflow":"/github/workflow" -v "/runner/_work/_temp/_runner_file_commands":"/github/file_commands" -v "/runner/_work/NDA":"/github/workspace" 60e226:89a8968ce8f24dafb05394106afbf671
[2023-09-14 16:15:37 +0000] [46] [INFO] Starting gunicorn 21.2.0
[2023-09-14 16:15:37 +0000] [46] [INFO] Listening at: http://127.0.0.1:8000/ (46)
[2023-09-14 16:15:37 +0000] [46] [INFO] Using worker: gthread
[2023-09-14 16:15:37 +0000] [48] [INFO] Booting worker with pid: 48
[/api/v1/upload] Upload the app to MobSF
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[INFO] 14/Sep/2023 16:15:39 -
API Key read from environment variable
100 306 0 0 100 306 0 254 0:00:01 0:00:01 --:--:-- 254[INFO] 14/Sep/2023 16:15:40 -
| \/ | _ | |_/ || | | /|___ |
| |\/| |/ | ' __ | | \ \ / / |_ \ / /
| | | | () | |) |) | | \ V / ) | / /
|| ||_/|_./__/|| \/ |__()/
[INFO] 14/Sep/2023 16:15:40 - Mobile Security Framework v3.7.8 Beta
[INFO] 14/Sep/2023 16:15:40 -
[INFO] 14/Sep/2023 16:15:40 - OS: Linux
REST API Key: 5UGTAUrZYC8iazyOImeb9fTMpt7JfNlUDLPiHEsCRCRHu6ucWBIMm1exR9szgACa
[INFO] 14/Sep/2023 16:15:40 - Platform: Linux-5.10.162+-x86_64-with-glibc2.35
[INFO] 14/Sep/2023 16:15:40 - Dist: ubuntu 22.04 Jammy Jellyfish
[INFO] 14/Sep/2023 16:15:40 - MobSF Basic Environment Check
Warning: 14/Sep/2023 16:15:40 - Bad Request: /api/v1/upload
100 345 0 39 100 306 30 237 0:00:01 0:00:01 --:--:-- 268
[/api/v1/upload] Received: FILE_NAME=null, HASH=null, SCAN_TYPE=null
[/api/v1/scan] Start the scan
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[INFO] 14/Sep/2023 16:15:40 -
Error: 14/Sep/2023 16:15:40 - Internal Server Error: /api/v1/scan
100 68 0 29 100 39 9125 12271 --:--:-- --:--:-- --:--:-- 22666
{"error": "Invalid Checksum"}[/api/v1/scan] Scan finisehd
[/api/v1/report_json] Generate the json report
Warning: 14/Sep/2023 16:15:40 - Bad Request: /api/v1/report_json
100 39 0 30 100 9 9149 2744 --:--:-- --:--:-- --:--:-- 13000
[/api/v1/report_json] JSON report generated
[/api/v1/download_pdf] Generate the PDF report
Warning: 14/Sep/2023 16:15:40 - Bad Request: /api/v1/download_pdf
100 39 0 30 100 9 9986 2996 --:--:-- --:--:-- --:--:-- 19500
[/api/v1/download_pdf] PDF report generated
[/api/v1/delete_scan] Remove analysis from MobSF server
100 43 0 34 100 9 12381 3277 --:--:-- --:--:-- --:--:-- 21500
{"deleted": "scan hash not found"}[/api/v1/delete_scan] Analysis removed
Did you find any solution to this?
Hi everyone! I'm try to use mobsf github action workflow on self-hosted runner and have some error's. Could help me please with resolving of this error's?
Run fundacaocerti/mobsf-action@96f53daa4d68a2caaeb5caf23ded96a10ebaf87b
env:
/usr/local/bin/docker run --name e22689a8968ce8f24dafb05394106afbf671_af99d8 --label 60e226 --workdir /github/workspace --rm -e "INPUT_FILE_NAME" -e "SCAN_TYPE" -e "OUTPUT_FILE_NAME" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_EVENT_PATH" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "GITHUB_ACTION" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/runner/_work/_temp/_github_home":"/github/home" -v "/runner/_work/_temp/_github_workflow":"/github/workflow" -v "/runner/_work/_temp/_runner_file_commands":"/github/file_commands" -v "/runner/_work/NDA":"/github/workspace" 60e226:89a8968ce8f24dafb05394106afbf671
[2023-09-14 16:15:37 +0000] [46] [INFO] Starting gunicorn 21.2.0
[2023-09-14 16:15:37 +0000] [46] [INFO] Listening at: http://127.0.0.1:8000/ (46)
[2023-09-14 16:15:37 +0000] [46] [INFO] Using worker: gthread
[2023-09-14 16:15:37 +0000] [48] [INFO] Booting worker with pid: 48
[/api/v1/upload] Upload the app to MobSF
% Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[INFO] 14/Sep/2023 16:15:39 -
API Key read from environment variable
100 306 0 0 100 306 0 254 0:00:01 0:00:01 --:--:-- 254[INFO] 14/Sep/2023 16:15:40 -
| \/ | _ | |_/ || | | /|___ |
| |\/| |/ | ' __ | | \ \ / / |_ \ / /
| | | | () | |) |) | | \ V / ) | / /
|| ||_/|_./__/|| \/ |__()/
[INFO] 14/Sep/2023 16:15:40 - Mobile Security Framework v3.7.8 Beta
[INFO] 14/Sep/2023 16:15:40 -
API Key read from environment variable
[INFO] 14/Sep/2023 16:15:40 - OS: Linux
REST API Key: 5UGTAUrZYC8iazyOImeb9fTMpt7JfNlUDLPiHEsCRCRHu6ucWBIMm1exR9szgACa
[INFO] 14/Sep/2023 16:15:40 - Platform: Linux-5.10.162+-x86_64-with-glibc2.35
[INFO] 14/Sep/2023 16:15:40 - Dist: ubuntu 22.04 Jammy Jellyfish
[INFO] 14/Sep/2023 16:15:40 - MobSF Basic Environment Check
Warning: 14/Sep/2023 16:15:40 - Bad Request: /api/v1/upload
100 345 0 39 100 306 30 237 0:00:01 0:00:01 --:--:-- 268
[/api/v1/upload] Received: FILE_NAME=null, HASH=null, SCAN_TYPE=null
[/api/v1/scan] Start the scan
% Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[INFO] 14/Sep/2023 16:15:40 -
API Key read from environment variable
Error: 14/Sep/2023 16:15:40 - Internal Server Error: /api/v1/scan
100 68 0 29 100 39 9125 12271 --:--:-- --:--:-- --:--:-- 22666
{"error": "Invalid Checksum"}[/api/v1/scan] Scan finisehd
[/api/v1/report_json] Generate the json report
% Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[INFO] 14/Sep/2023 16:15:40 -
API Key read from environment variable
Warning: 14/Sep/2023 16:15:40 - Bad Request: /api/v1/report_json
100 39 0 30 100 9 9149 2744 --:--:-- --:--:-- --:--:-- 13000
[/api/v1/report_json] JSON report generated
[/api/v1/download_pdf] Generate the PDF report
% Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[INFO] 14/Sep/2023 16:15:40 -
API Key read from environment variable
Warning: 14/Sep/2023 16:15:40 - Bad Request: /api/v1/download_pdf
100 39 0 30 100 9 9986 2996 --:--:-- --:--:-- --:--:-- 19500
[/api/v1/download_pdf] PDF report generated
[/api/v1/delete_scan] Remove analysis from MobSF server
% Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[INFO] 14/Sep/2023 16:15:40 -
API Key read from environment variable
100 43 0 34 100 9 12381 3277 --:--:-- --:--:-- --:--:-- 21500
{"deleted": "scan hash not found"}[/api/v1/delete_scan] Analysis removed