Skip to content

[deep-report] Extend envutil with GetBoolFromEnv/GetStringFromEnv and migrate os.Getenv("CI") bypasses #44057

Description

@github-actions

Description

The pkg/envutil package was created to centralise env-var access but exposes only GetIntFromEnv. Boolean flags (CI, GO_TEST_MODE, CODESPACES) and token-presence checks are still read via raw os.Getenv, and IsRunningInCI() in pkg/cli is bypassed by 3 same-package callsites. Add GetBoolFromEnv and GetStringFromEnv helpers (with spec tests + README, mirroring GetIntFromEnv), then migrate the 3 os.Getenv("CI") bypasses to call IsRunningInCI().

Expected Impact

Consistent, mockable env-var behaviour across environments; unblocks the stalled osgetenvlibrary migration.

Suggested Agent

Copilot SWE Agent

Estimated Effort

Medium (1-4 hours)

Data Source

DeepReport 2026-07-07; Repository Quality Report #44041

Generated by 🔬 Deep Report · 191.8 AIC · ⌖ 16.9 AIC · ⊞ 10K ·

  • expires on Jul 9, 2026, 7:45 AM UTC-08:00

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions