fix: add nosec annotations for gosec lint warnings

This commit is contained in:
Steve Yegge
2025-11-25 18:22:05 -08:00
parent 9fc0285987
commit ddced40153
4 changed files with 9 additions and 3 deletions

View File

@@ -1909,7 +1909,7 @@ func checkDeletionsManifest(path string) doctorCheck {
// Check if JSONL has any git history
relPath, _ := filepath.Rel(path, jsonlPath)
cmd := exec.Command("git", "log", "--oneline", "-1", "--", relPath)
cmd := exec.Command("git", "log", "--oneline", "-1", "--", relPath) // #nosec G204 - args are controlled
cmd.Dir = path
if output, err := cmd.Output(); err != nil || len(output) == 0 {
// No git history for JSONL