Skip to content

Report upload: POST /api/v1/scans integration (v1.2.2)#53

Merged
spark1security merged 5 commits into
mainfrom
report-upload
May 18, 2026
Merged

Report upload: POST /api/v1/scans integration (v1.2.2)#53
spark1security merged 5 commits into
mainfrom
report-upload

Conversation

@spark1security
Copy link
Copy Markdown
Owner

Summary

  • Adds upload_report() to Spark1 client, posting completed scan reports to the new POST /api/v1/scans backend endpoint
  • Moves report upload out of the ai_analysis-only code path — reports are now uploaded unconditionally whenever the scanner is authenticated, with AI analysis
  • Extracts _process_report_upload() to handle the upload HTTP response and write the server-assigned report_uuid back into the report JSON as
    report["uuid"]
  • Fixes a stale variable name in ai_analysis(): auth_urlai_analysis_url (was silently pointing at the wrong endpoint)
  • Updates base URL: api.spark1.usn0s1.spark1.us
  • Bumps version to 1.2.2

Test plan

  • Run a full scan (e.g. jira_scan) with N0S1_TOKEN set — confirm report uploads successfully and UUID is logged
  • Confirm report["uuid"] is present in the saved .json report file after the scan
  • Run with --ai-analysis — confirm AI analysis still runs after upload
  • Run without N0S1_TOKEN (private/community mode) — confirm no upload attempt is made

@spark1security spark1security requested a review from blupants May 17, 2026 22:44
@spark1security spark1security self-assigned this May 17, 2026
@spark1security spark1security merged commit 8eee089 into main May 18, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants