fix: add gosec lint suppressions

Add #nolint:gosec comments for reviewed file operations:
- cmd/bd/main.go:299 - G304: ReadFile from .beads/config.yaml (safe, constructed path)
- cmd/bd/daemon_health_unix.go:18 - G115: overflow is safe in disk space calculation
This commit is contained in:
matt wilkie
2025-11-29 01:06:01 -07:00
parent 9b55c4d953
commit 21720237d8
2 changed files with 4 additions and 2 deletions

View File

@@ -296,7 +296,8 @@ var rootCmd = &cobra.Command{
}
isNoDbMode := false
if configData, err := os.ReadFile(configPath); err == nil {
// configPath is safe: constructed from filepath.Join(beadsDir, hardcoded name)
if configData, err := os.ReadFile(configPath); err == nil { //nolint:gosec
isNoDbMode = strings.Contains(string(configData), "no-db: true")
}