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

Add status message as the scan #18

Open
watchdog1337 opened this issue Jan 9, 2025 · 0 comments
Open

Add status message as the scan #18

watchdog1337 opened this issue Jan 9, 2025 · 0 comments

Comments

@watchdog1337
Copy link

I clone a github project of vulnerable code snippets. there are 6151 lines of code over 151 files.

The below is the log output:

2025-01-09 21:05:44,010 - app - INFO - [Analysis 7] New analysis started for project 'Vulnerable Code Snippets' (project id=2)
2025-01-09 21:05:44,010 - app - INFO - [Analysis 7] Setting up semgrep options
2025-01-09 21:05:44,010 - app - INFO - [Analysis 7] Scan path: data/projects/2/extract
2025-01-09 21:05:44,010 - app - INFO - [Analysis 7] Rules path: data/projects/2/rules
2025-01-09 21:05:44,011 - app - INFO - [Analysis 7] Ignore list: {'mock', '/test/', '/nodes_modules/', '/Test/', 'Mock', '/tests/', '.spec.ts', '/Tests/', '.min.js', '/pods/', '/vendor/'}
2025-01-09 21:05:44,769 - app - INFO - [Analysis 7] Found 150 files to scan
2025-01-09 21:05:44,769 - app - INFO - [Analysis 7] Starting SAST scan (semgrep)
2025-01-09 21:05:44,769 - app - INFO - [Analysis 7] Semgrep execution 1 / 1
2025-01-09 21:07:21,895 - app - INFO - [Analysis 7] Saving semgrep results on disk: data/projects/2/reports/sast_report_0.json
2025-01-09 21:07:21,897 - app - INFO - [Analysis 7] Loading semgrep results in database
2025-01-09 21:07:21,902 - app - INFO - [Analysis 7] Found 178 semgrep results
2025-01-09 21:07:21,940 - app - INFO - [Analysis 7] SAST scan (semgrep) finished
2025-01-09 21:07:21,940 - app - INFO - [Analysis 7] Starting SCA scan (depscan)
2025-01-09 21:07:21,941 - app - INFO - [Analysis 7] Depscan source path: /opt/grepmarx/data/projects/2/extract
2025-01-09 21:07:21,942 - app - INFO - [Analysis 7] Depscan output folder: /opt/grepmarx/data/projects/2/reports
2025-01-09 21:07:21,942 - app - INFO - [Analysis 7] Depscan execution
2025-01-09 21:08:45,858 - app - INFO - 
2025-01-09 21:08:45,865 - app - INFO - [Analysis 7] SCA scan (depscan) finished
2025-01-09 21:08:45,865 - app - INFO - [Analysis 7] Loading depscan results in database
2025-01-09 21:08:45,865 - app - INFO - [Analysis 7] Found 93 depscan results
2025-01-09 21:08:45,976 - app - INFO - [Analysis 7] Starting Inspector scan (ApplicationInspector)
2025-01-09 21:08:47,987 - app - INFO - [21:08:46 INF] Analyze command running
[21:08:47 INF] Analyze command completed

2025-01-09 21:08:47,993 - app - INFO - [Analysis 7] Inspector scan (ApplicationInspector) finished
2025-01-09 21:08:47,993 - app - INFO - [Analysis 7] Loading AppInspector results in database
2025-01-09 21:08:47,993 - app - INFO - [Analysis 7] Found 697 AppInspector results
root@4ba85d2170bd:/opt/grepmarx/data/projects/2# 
root@4ba85d2170bd:/opt/grepmarx/data/projects/2# watch tail^C
root@4ba85d2170bd:/opt/grepmarx/data/projects/2# tail -f logs/7.log 
2025-01-09 21:08:45,865 - app - INFO - [Analysis 7] SCA scan (depscan) finished
2025-01-09 21:08:45,865 - app - INFO - [Analysis 7] Loading depscan results in database
2025-01-09 21:08:45,865 - app - INFO - [Analysis 7] Found 93 depscan results
2025-01-09 21:08:45,976 - app - INFO - [Analysis 7] Starting Inspector scan (ApplicationInspector)
2025-01-09 21:08:47,987 - app - INFO - [21:08:46 INF] Analyze command running
[21:08:47 INF] Analyze command completed

2025-01-09 21:08:47,993 - app - INFO - [Analysis 7] Inspector scan (ApplicationInspector) finished
2025-01-09 21:08:47,993 - app - INFO - [Analysis 7] Loading AppInspector results in database
2025-01-09 21:08:47,993 - app - INFO - [Analysis 7] Found 697 AppInspector results

The task is stuck in analyzing on the gui and i have no clue what it is doing or if it is stuck, or if the status just hasn't updated.

Could you add a status message or a rough percentage/ETA of when the scan will be done?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant