You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[lint-monster] Guard direct slice and string indexing #68571
The 2026-10-16 scan reported 1,710 direct slice and string indexing findings across 353 files. Scan run: §38841529624.
Representative diagnostics
pkg/logger/logger.go:55:60: direct slice indexing without bounds checking; prove the index is nonnegative and below len(basePaletteColors) before access.
pkg/stringutil/ansi.go:30:6: direct string indexing without bounds checking; prove the index is nonnegative and below len(s) before access.
Affected paths
Highest-count examples from the scan:
pkg/parser/schedule_parser.go (40)
pkg/workflow/js.go (39)
pkg/workflow/trigger_parser.go (32)
pkg/cli/update_actions_content_refs.go (32)
pkg/workflow/expression_parser.go (26)
Remediation checklist
Address only direct slice and string indexing findings in this category.
Establish that each index is nonnegative and below the actual collection length before access. For parser and AST shapes, validate expected shape and handle malformed input safely.
Keep edits minimal, preserve behavior, and do not suppress findings or change linter rules.
Activity