Repository navigation
Not planned
Labels
Description
Daily custom lint findings
The 2026-10-13 make golint-custom scan reported 1731 indexing findings across 355 files. Scan run: §38339220851.
Representative diagnostics
pkg/logger/logger.go:55:60: direct slice indexing without bounds checking; ensure idx is nonnegative and less than len(basePaletteColors) before indexingpkg/stringutil/ansi.go:30:6: direct string indexing without bounds checking; ensure i is nonnegative and less than len(s) before indexing
Affected paths
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)pkg/cli/spec.go(24)pkg/parser/github_urls.go(23)pkg/cli/codemod_steps_run_secrets_env.go(20)pkg/linters/sprintferrdot/sprintferrdot.go(20)pkg/parser/inline_section_helpers.go(19)pkg/parser/schema_errors.go(19)pkg/workqueue/branch.go(19)pkg/cli/codemod_checkout_persist_credentials_false.go(19)pkg/parser/schedule_time_utils.go(16)pkg/workflow/expression_optimizer.go(16)pkg/workflow/frontmatter_error.go(16)pkg/workflow/safe_outputs_app_config.go(16)pkg/linters/errorfwrapv/errorfwrapv.go(16)pkg/parser/schedule_cron_detection.go(15)pkg/workflow/markdown_security_scanner.go(15)pkg/cli/trial_repository.go(15)pkg/parser/schedule_fuzzy_scatter.go(14)pkg/workflow/gh_cli_permissions.go(14)pkg/cli/firewall_log.go(14)pkg/linters/slicemakezerolength/slicemakezerolength.go(14)pkg/cli/includes.go(13)pkg/parser/frontmatter_hash.go(12)pkg/workflow/cache_memory.go(12)pkg/workflow/expression_secrets_serialization_validation.go(12)pkg/workflow/shell.go(12)pkg/cli/workflows.go(12)pkg/parser/schema_suggestions.go(11)pkg/workflow/frontmatter_on_section_cleanup.go(11)pkg/cli/codemod_bots.go(11)pkg/cli/codemod_safe_job_runner.go(11)pkg/stringutil/ansi.go(10)pkg/workflow/runner_temp_safety.go(10)pkg/workflow/tools_validation_github.go(10)pkg/cli/access_log.go(10)pkg/cli/dispatch.go(10)pkg/cli/logs_orchestrator_stdin.go(10)pkg/cli/yamllint.go(10)pkg/stringutil/fuzzy_match.go(9)pkg/parser/frontmatter_content.go(9)pkg/workflow/label_trigger_parser.go(9)pkg/workflow/template_injection_utils.go(9)pkg/workflow/template_injection_validation.go(9)pkg/workflow/validation_helpers.go(9)pkg/cli/codemod_permissions_write.go(9)pkg/cli/codemod_schedule.go(9)pkg/cli/compile_schedule_calendar.go(9)pkg/cli/copilot_setup.go(9)pkg/parser/remote_workflow_spec.go(8)pkg/workflow/repo_memory_prompt.go(8)pkg/workflow/schedule_preprocessing.go(8)pkg/workflow/universal_llm_consumer_engine.go(8)pkg/cli/add_package_manifest_remote.go(8)pkg/cli/codemod_network_firewall.go(8)pkg/cli/import_url_fetcher.go(8)pkg/cli/runner_guard_copilot_allow_tool.go(8)pkg/parser/import_directive.go(7)pkg/repoutil/repoutil.go(7)pkg/workflow/action_cache.go(7)pkg/workflow/template_validation.go(7)pkg/cli/add_package_manifest_parse.go(7)pkg/cli/audit_diff_command.go(7)pkg/cli/codemod_workflow_run_branches.go(7)pkg/cli/remove_command.go(7)cmd/gh-aw/main.go(7)pkg/linters/generatedyamlheredoc/generatedyamlheredoc.go(7)pkg/agentdrain/template.go(6)pkg/parser/import_error.go(6)pkg/parser/import_remote.go(6)pkg/parser/json_path_locator.go(6)pkg/workflow/compiler_safe_outputs_builder.go(6)pkg/workflow/enclaves.go(6)pkg/workflow/expression_safety_validation.go(6)pkg/workflow/frontmatter_extraction_yaml.go(6)pkg/workflow/redact_secrets.go(6)pkg/workflow/runs_on_snippet.go(6)pkg/workflow/secret_extraction.go(6)pkg/cli/add_interactive_git.go(6)pkg/cli/add_skill_rewrite.go(6)pkg/cli/bootstrap_profile_github_app.go(6)pkg/cli/codemod_factory.go(6)pkg/cli/codemod_pull_request_target_checkout_false.go(6)pkg/cli/experiments_grader_statistics.go(6)pkg/cli/mcp_argument_validation.go(6)pkg/cli/update_actions_release.go(6)pkg/cli/update_packages.go(6)pkg/linters/mapdeletecheck/mapdeletecheck.go(6)pkg/linters/walkfuncerrshadow/walkfuncerrshadow.go(6)pkg/stringutil/stringutil.go(5)pkg/parser/schema_compiler.go(5)pkg/workqueue/checkpoint.go(5)pkg/workflow/action_sha_checker.go(5)pkg/workflow/compiler_yaml_normalize.go(5)pkg/workflow/error_recovery.go(5)pkg/workflow/frontmatter_extraction_metadata.go(5)pkg/workflow/mcp_setup_gateway.go(5)pkg/workflow/stop_after.go(5)pkg/cli/actionlint.go(5)pkg/cli/codemod_assign_to_agent.go(5)pkg/cli/codemod_cli_proxy_bash.go(5)pkg/cli/codemod_copilot_requests_feature.go(5)pkg/cli/codemod_dependabot_permissions.go(5)pkg/cli/codemod_engine_steps.go(5)pkg/cli/codemod_permissions_read.go(5)pkg/cli/experiments_decision.go(5)pkg/cli/frontmatter_editor.go(5)pkg/cli/logs_command.go(5)pkg/cli/mcp_inspect_mcp.go(5)pkg/cli/project_command.go(5)pkg/cli/trial_confirmation.go(5)pkg/cli/view_command.go(5)pkg/linters/manualpathconcat/manualpathconcat.go(5)pkg/linters/sprintfbool/sprintfbool.go(5)pkg/linters/stringbytesroundtrip/stringbytesroundtrip.go(5)pkg/linters/writebytestring/writebytestring.go(5)pkg/logger/logger.go(4)pkg/console/table_width.go(4)pkg/gitutil/gitutil.go(4)pkg/parser/remote_path_predicates.go(4)pkg/workflow/action_resolver.go(4)pkg/workflow/checkout_manager.go(4)pkg/workflow/compiler_model_pricing.go(4)pkg/workflow/compiler_pre_activation_job.go(4)pkg/workflow/compiler_yaml_checkout.go(4)pkg/workflow/dependabot_manifests.go(4)pkg/workflow/env_expression_validation.go(4)pkg/workflow/expression_builder.go(4)pkg/workflow/model_identifier.go(4)pkg/workflow/permissions_operations.go(4)pkg/workflow/plugins_frontmatter.go(4)pkg/workflow/repository_features_validation.go(4)pkg/workflow/tools.go(4)pkg/workflow/utc_offset.go(4)pkg/workflow/windows_runner.go(4)pkg/cli/add_interactive_schedule.go(4)pkg/cli/add_package_manifest_imports.go(4)pkg/cli/add_package_manifest_includes.go(4)pkg/cli/codemod_agent_session.go(4)pkg/cli/codemod_bash_single_quoted_args.go(4)pkg/cli/codemod_serena_import.go(4)pkg/cli/codemod_slash_command.go(4)pkg/cli/codemod_upload_assets.go(4)pkg/cli/docker_args_validation.go(4)pkg/cli/edit_command.go(4)pkg/cli/experiments_analyze_statistics.go(4)pkg/cli/generate_action_metadata_command.go(4)pkg/cli/git.go(4)pkg/cli/interactive.go(4)pkg/cli/outcomes_command.go(4)pkg/cli/pr_command.go(4)pkg/cli/resources.go(4)pkg/cli/shellcheck.go(4)pkg/cli/stats_helpers.go(4)pkg/cli/tool_graph.go(4)pkg/cli/zizmor.go(4)pkg/linters/fmterrorfnoverbs/fmterrorfnoverbs.go(4)pkg/linters/fprintlnsprintf/fprintlnsprintf.go(4)pkg/linters/hardcodedfilepath/hardcodedfilepath.go(4)pkg/linters/lenstringsplit/lenstringsplit.go(4)pkg/linters/mapclearloop/mapclearloop.go(4)pkg/linters/stringreplaceminusone/stringreplaceminusone.go(4)pkg/logger/slog_adapter.go(3)pkg/console/console.go(3)pkg/console/render.go(3)pkg/semverutil/semverutil.go(3)pkg/parser/include_expander.go(3)pkg/parser/mcp.go(3)pkg/parser/remote_resolve_sha.go(3)pkg/stats/statvar.go(3)pkg/workqueue/inspection.go(3)pkg/workflow/arc_dind_artifacts.go(3)pkg/workflow/close_entity_helpers.go(3)pkg/workflow/compiler_difc_proxy.go(3)pkg/workflow/compiler_job_step_helpers.go(3)pkg/workflow/dependabot_reconcile.go(3)pkg/workflow/observability_otlp.go(3)pkg/workflow/runtime_definitions.go(3)pkg/workflow/runtime_detection.go(3)pkg/workflow/runtime_import_validation.go(3)pkg/workflow/safe_outputs_actions.go(3)pkg/workflow/safe_outputs_step_token_validation.go(3)pkg/workflow/safe_outputs_steps_shell_expansion_validation.go(3)pkg/workflow/samples_validation.go(3)pkg/workflow/time_delta.go(3)pkg/cli/add_command_resources.go(3)pkg/cli/add_package_ownership.go(3)pkg/cli/bootstrap_profile_helpers.go(3)pkg/cli/codemod_allowed_repos_current.go(3)pkg/cli/codemod_expires_integer.go(3)pkg/cli/codemod_install_script_url.go(3)pkg/cli/codemod_mcp_network.go(3)pkg/cli/codemod_run_install_scripts.go(3)pkg/cli/codemod_sandbox_runtime_profile.go(3)pkg/cli/compile_pipeline.go(3)pkg/cli/fetch.go(3)pkg/cli/format_command.go(3)pkg/cli/gateway_logs_timeline_render.go(3)pkg/cli/graders_command.go(3)pkg/cli/logs_rate_limit.go(3)pkg/cli/mcp_tools_management.go(3)pkg/cli/packages.go(3)pkg/cli/run_workflow_execution.go(3)pkg/cli/update_workflows.go(3)pkg/cli/yaml_frontmatter_utils.go(3)pkg/linters/appendbytestring/appendbytestring.go(3)pkg/linters/appendoneelement/appendoneelement.go(3)pkg/linters/seenmapbool/seenmapbool.go(3)pkg/linters/sprintfint/sprintfint.go(3)pkg/linters/stringsconcatloop/stringsconcatloop.go(3)pkg/linters/stringsjoinone/stringsjoinone.go(3)pkg/stringutil/sanitize.go(2)pkg/console/list.go(2)pkg/github/label_objective_mapping.go(2)pkg/parser/schema_deprecation.go(2)pkg/parser/workflow_update.go(2)pkg/parser/yaml_error.go(2)pkg/workqueue/compaction.go(2)pkg/workflow/awf_env.go(2)pkg/workflow/cache_integrity.go(2)pkg/workflow/compiler_orchestrator_workflow.go(2)pkg/workflow/compiler_yaml_prompt.go(2)pkg/workflow/concurrency_validation.go(2)pkg/workflow/copilot_logs.go(2)pkg/workflow/expression_nodes.go(2)pkg/workflow/expression_syntax_validation.go(2)pkg/workflow/filters.go(2)pkg/workflow/github_app_permissions_validation.go(2)pkg/workflow/mcp_setup_safe_outputs.go(2)pkg/workflow/on_needs_validation.go(2)pkg/workflow/package_extraction.go(2)pkg/workflow/permissions_parser.go(2)pkg/workflow/permissions_toolset_data.go(2)pkg/workflow/permissions_validation.go(2)pkg/workflow/pip.go(2)pkg/workflow/run_step_sanitizer.go(2)pkg/workflow/runtime_deduplication.go(2)pkg/workflow/safe_outputs_validation.go(2)pkg/workflow/schema_validation.go(2)pkg/workflow/steps_output_in_prompt_validation.go(2)pkg/workflow/tool_description_enhancer.go(2)pkg/workflow/tools_types.go(2)pkg/workflow/workflow_errors.go(2)pkg/workflow/xml_comments.go(2)pkg/workflow/yaml.go(2)pkg/cli/add_interactive_auth.go(2)pkg/cli/add_interactive_engine.go(2)pkg/cli/add_interactive_orchestrator.go(2)pkg/cli/add_package_manifest_resolve.go(2)pkg/cli/add_workflow_pr.go(2)pkg/cli/bootstrap_shared.go(2)pkg/cli/codemod_engine_env_secrets.go(2)pkg/cli/codemod_timeout_minutes.go(2)pkg/cli/compile_compiler_setup.go(2)pkg/cli/copilot_events_jsonl.go(2)pkg/cli/deps_go_mod.go(2)pkg/cli/devcontainer.go(2)pkg/cli/engine_secrets.go(2)pkg/cli/env_command.go(2)pkg/cli/evals_branch.go(2)pkg/cli/forecast_montecarlo.go(2)pkg/cli/github.go(2)pkg/cli/helpers.go(2)pkg/cli/json_schema_command.go(2)pkg/cli/logs_metrics.go(2)pkg/cli/logs_orchestrator.go(2)pkg/cli/mcp_add.go(2)pkg/cli/outcomes_history.go(2)pkg/cli/run_workflow_validation.go(2)pkg/cli/trial_helpers.go(2)pkg/cli/trial_runner.go(2)pkg/cli/update_container_pins.go(2)pkg/linters/bytescomparestring/bytescomparestring.go(2)pkg/linters/contextcancelnotdeferred/contextcancelnotdeferred.go(2)pkg/linters/errormessage/errormessage.go(2)pkg/linters/errstringmatch/errstringmatch.go(2)pkg/linters/panic-in-library-code/panic-in-library-code.go(2)pkg/linters/timenowsub/timenowsub.go(2)pkg/linters/uncheckedflushreturn/uncheckedflushreturn.go(2)pkg/console/format.go(1)pkg/sliceutil/sliceutil.go(1)pkg/agentdrain/tree.go(1)pkg/intent/resolver.go(1)pkg/importinpututil/import_input.go(1)pkg/typeutil/km_suffix.go(1)pkg/parser/import_topological.go(1)pkg/parser/remote_client.go(1)pkg/parser/remote_download_file.go(1)pkg/parser/schema_safe_output_aliases.go(1)pkg/scanfindings/scanfindings.go(1)pkg/workqueue/resource_scope.go(1)pkg/workflow/cache_config.go(1)pkg/workflow/command.go(1)pkg/workflow/comment.go(1)pkg/workflow/compiler_custom_job_memory.go(1)pkg/workflow/config_helpers.go(1)pkg/workflow/engine_config_parser.go(1)pkg/workflow/github_app_owner_derivation.go(1)pkg/workflow/imported_steps_validation.go(1)pkg/workflow/known_action_credentials.go(1)pkg/workflow/label_command.go(1)pkg/workflow/lsp_manager.go(1)pkg/workflow/model_alias_validation.go(1)pkg/workflow/playwright_cli.go(1)pkg/workflow/plugins_ref_resolution.go(1)pkg/workflow/safe_outputs_handler_registry_issues.go(1)pkg/workflow/skills_ref_resolution.go(1)pkg/workflow/strict_mode_steps_validation.go(1)pkg/workflow/strings.go(1)pkg/workflow/template.go(1)pkg/workflow/workflow_github_app.go(1)pkg/cli/add_copilot_permissions.go(1)pkg/cli/add_workflow_resolution.go(1)pkg/cli/audit_diff_render.go(1)pkg/cli/checks_command.go(1)pkg/cli/codemod_engine_to_top_level_helpers.go(1)pkg/cli/codemod_min_integrity_none_bash.go(1)pkg/cli/compile_development.go(1)pkg/cli/completion_command.go(1)pkg/cli/copilot_agent_logs.go(1)pkg/cli/dependency_graph.go(1)pkg/cli/deploy_command.go(1)pkg/cli/deps_report.go(1)pkg/cli/domains_command.go(1)pkg/cli/experiments_command.go(1)pkg/cli/experiments_fetch.go(1)pkg/cli/experiments_grader_observations.go(1)pkg/cli/experiments_state.go(1)pkg/cli/hash_command.go(1)pkg/cli/imports.go(1)pkg/cli/logs_utils.go(1)pkg/cli/mcp_list.go(1)pkg/cli/mcp_tools_privileged.go(1)pkg/cli/outcome_eval_enrich.go(1)pkg/cli/run_interactive.go(1)pkg/cli/run_workflow_tracking.go(1)pkg/cli/runner_guard_activation_gate.go(1)pkg/cli/secret_set_command.go(1)pkg/cli/setup_repository.go(1)pkg/cli/update_display.go(1)pkg/linters/bytesbufferstring/bytesbufferstring.go(1)pkg/linters/consolestderr/consolestderr.go(1)pkg/linters/consolestderr/render_options.go(1)pkg/linters/errortypeassertion/errortypeassertion.go(1)pkg/linters/fileclosenotdeferred/fileclosenotdeferred.go(1)pkg/linters/lenstringzero/lenstringzero.go(1)pkg/linters/packagelevelmutableslicemap/packagelevelmutableslicemap.go(1)pkg/linters/sprintferrorsnew/sprintferrorsnew.go(1)pkg/linters/ssljson/ssljson.go(1)pkg/linters/tolowerequalfold/tolowerequalfold.go(1)pkg/linters/trimleftright/trimleftright.go(1)pkg/linters/wgdonenotdeferred/wgdonenotdeferred.go(1)
Remediation checklist
- Use the current indexing diagnostics from
make golint-customand address only direct slice/string indexing findings in this category. - Add guards that establish the relevant index is nonnegative and within the actual collection length before access. For AST or parser shapes, validate the expected shape and handle malformed input safely.
- Keep edits small and preserve intended behavior. Do not suppress findings or change linter rules.
- Run
make golint-customand confirm this category no longer reports findings; other categories may still fail during this focused pass.
Generated by 🧌 LintMonster · codex · gpt60 · 3.97 AIC · ⌖ 0.476 AIC · ⊞ 16K · ◷
Activity