Commit a2f2c15
ci: harden PSScriptAnalyzer step against internal analyzer NREs
PSScriptAnalyzer 1.25.0 has been throwing intermittent NREs and parameter
binding errors during recursive analysis on Linux runners when invoked with
-RecurseCustomRulePath but no -CustomRulePath. The switch is a no-op without
a custom rule path anyway, so it's removed. The call is wrapped in try/catch
that falls back to per-file analysis if the recursive call throws, so a
transient analyzer fault no longer fails the workflow.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1224bb6 commit a2f2c15
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
52 | 68 | | |
53 | 69 | | |
54 | 70 | | |
| |||
0 commit comments