fix(machine-health): refresh an empty CISA KEV cache file - #3652
Conversation
Whitespace-only cache content left needsRefresh false, so a truncated file never self-healed. Closes #3436 Co-authored-by: ksextonmelodic <ksextonmelodic@gmail.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 50s —— View job Security review complete
No security issues found. This PR is a narrow bug fix:
Skip gate condition 2 applies (no security-relevant surface in this diff) — nothing further to report. |
|
Last security-reviewed head: |
|
Claude finished @kyle-sexton's task in 1m 23s —— View job Claude finished the code review
SummarySmall, well-scoped fix. FindingsMinor — docstring doesn't cover the new refresh case (Get-CisaKevCache.ps1#L9-L15) The function's No other correctness, security, or maintainability issues found in the changed files ( |
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Closes #3436
Summary
An empty or whitespace CISA KEV cache left
needsRefreshfalse, so a truncated file never self-healed.Fix
Treat empty/whitespace content as the missing-file path (
needsRefresh = true). machine-health 0.12.2.Verification
Pester
Get-CisaKevCache.Tests.ps1: 14 passed, including the new empty/whitespace fixture. Official runner is Windows-only; this lib suite also ran on Linux.Related
N/A