Skip to content

fix: return 200 when results array is empty#1053

Merged
greenbonebot merged 1 commit into
mainfrom
fix/parse-results-return-200-on-empty
Feb 24, 2026
Merged

fix: return 200 when results array is empty#1053
greenbonebot merged 1 commit into
mainfrom
fix/parse-results-return-200-on-empty

Conversation

@ozgen

@ozgen ozgen commented Feb 24, 2026

Copy link
Copy Markdown
Member

What

Return HTTP 200 from parse_results() when the results array is empty to correctly treat a valid but empty scanner response as success.

Why

An empty results array represents a valid scan response with no findings and should not be handled as an error.

References

GEA-1585

Checklist

  • Tests

@ozgen ozgen requested review from a team as code owners February 24, 2026 12:07
@greenbonebot greenbonebot enabled auto-merge (rebase) February 24, 2026 12:07
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 9904974.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@greenbonebot greenbonebot merged commit 26bb1a9 into main Feb 24, 2026
23 checks passed
@greenbonebot greenbonebot deleted the fix/parse-results-return-200-on-empty branch February 24, 2026 12:31
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.

3 participants