[hermes] ananke #68: go:S107 #8
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hermes auto-triage classified incident
sonar/ananke/go:S107/AZ4tzXzmqCRMjDT4d-fUas go:S107 (confidence n/a); first failed gate:unknown.Why a human is needed
TestHookMaybeStartGitOpsSnapshotWithRunner has eight independent parameters solely to expose a test seam, exceeding the configured parameter limit. Grouping its related dependencies and scrape state into a request struct preserves the exact call path and asynchronous runner-restoration behavior.
Ariadne did not authorize automated remediation:
no automated patch was possible for this finding.Facts
internal/service/testing_hooks_gitops.go:68)Suggested fix (not applied)
Hermes could not open a pull request for this, so the change below was not written, validated, or pushed anywhere. It is a starting point for whoever picks this up, not a reviewed patch.
internal/service/testing_hooks_gitops.go— Replace the eight-parameter test hook with a context plus a typed request struct. This keeps every value and control-flow branch unchanged while making the hook easier for tests to construct and satisfying go:S107.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_312124bcc7ea47b0874fd72bbce4c1cf). Hermes has no write access to this repository; no files or infrastructure were changed.