Skip to content

v0.19.0

Choose a tag to compare

@github-actions github-actions released this 17 Apr 09:06
· 545 commits to main since this release
486f2cc

Hardening & Cleanup

Security

  • install.sh: verifies SHA-256 checksums before extraction

Subprocess hardening

  • New system.Run helper wraps all external commands (git, gh) with a 10-second timeout and typed errors
  • No raw exec.Command calls remain in the codebase
  • log.Printf in the GitHub client replaced with structured slog.Logger (injected via WithLogger option)

Refactoring

  • errgroup: fetch orchestration uses errgroup.WithContext instead of manual WaitGroup + semaphore; API errors now surface to the user instead of being silently skipped
  • Immutable cost model: cost.Model struct replaces the exported mutable Multiplier map; DefaultModel() returns a defensive copy

Code cleanup

  • parseCoreCount: simplified digit scanning with strconv.Atoi
  • parseSince: replaced manual suffix parsing with regex
  • Duration.UnmarshalJSON: enables round-trip JSON serialization
  • migrate: cached PRAGMA table_info results (4 queries → 2)
  • Sort comparators: int(b-a) → cmp.Compare (prevents int64 overflow)
  • ParseMatrixJobName: simplified with strings.Cut
  • WorkflowName: removed O(n) linear-scan fallback (map is always populated)