Files
blog/content/posts/commits/2026-08-03-commit-19b1424.md
grafana-watcher 2630eb58fe
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 4m27s
post: commit 19b1424 in bojemoi
2026-08-03 23:26:45 +02:00

1.1 KiB

title, date, draft, tags, categories, summary, author
title date draft tags categories summary author
[bojemoi] fix(nuclei-api): handle JSON array output format from nuclei -json-export 2026-08-03T23:26:38+02:00 false
commit
bojemoi
main
Git Activity
Commit 19b1424 par grafana-watcher dans bojemoi grafana-watcher

Commit 19b1424

Repository bojemoi
Branch main
Author grafana-watcher
Hash 19b1424a58d97d247ad17c235130305cb59e8620

Description

Nuclei v3.x writes a single-line JSON array (not JSONL) to the export file. The previous JSONL parser appended the entire array as one item, causing 'list' object has no attribute 'get' in push_to_defectdojo() and /results.

Fix: detect list vs dict in the per-line parser and extend/append accordingly. Applies to both the internal dojo import loop and the /results API endpoint.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Files Changed

M	samsonov/nuclei_api/main.py

Diff Summary

 samsonov/nuclei_api/main.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)