[hermes] soteria: go:S1192 #35
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?
SonarQube reports go:S1192 in
internal/k8s/job_manifests.go. The build is green; this is a standing finding, not a failure.What is wrong
The string literal "/cache" is hardcoded three times (two VolumeMount.MountPath values and one RESTIC_CACHE_DIR env value) in internal/k8s/job_manifests.go. These must stay in sync since the env var tells restic where to find the cache dir that's mounted, so a single named constant removes the duplication and the risk of them drifting apart.
Ariadne opened no pull request for it: no automated patch was possible for this finding.
Facts
internal/k8s/job_manifests.go:45)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/k8s/job_manifests.go— Add a package-level constant for the cache mount path and reference it everywhere "/cache" was previously hardcoded, instead of repeating the literal.Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_626d7cf90d1c4ce0b3066036aa3c7023). Hermes has no write access to this repository; no files or infrastructure were changed.