ci: retry PSScriptAnalyzer per file when it throws #90

Merged
KofTwentyTwo merged 1 commits from ci/GH-89-analyzer-retry into main 2026-10-10 19:16:13 +00:00
KofTwentyTwo commented 2026-10-10 18:11:04 +00:00 (Migrated from github.com)

PSScriptAnalyzer 1.25.0 still throws Object reference not set to an instance of an object intermittently even one file per call; it failed the format gate of the v1.0.2-beta.1 release run (38074357696) until a re-run. Each file is now analyzed up to three times (2 s pause, a warning annotation per retry) and only a file that keeps throwing fails the gate, with the analyzer's error. Findings still fail as before.

Closes #89 (part of #62).

Tested: actionlint clean; the loop run locally over the same scripts reports 0 findings.

🤖 Generated with Claude Code

PSScriptAnalyzer 1.25.0 still throws `Object reference not set to an instance of an object` intermittently even one file per call; it failed the format gate of the v1.0.2-beta.1 release run (38074357696) until a re-run. Each file is now analyzed up to three times (2 s pause, a warning annotation per retry) and only a file that keeps throwing fails the gate, with the analyzer's error. Findings still fail as before. Closes #89 (part of #62). Tested: `actionlint` clean; the loop run locally over the same scripts reports 0 findings. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.