Skip to content

CI: PSScriptAnalyzer crashes now and then with a NullReferenceException #168

Closed

Description

@eizedev

Invoke-ScriptAnalyzer in the powershell CI job crashes now and then with "Object reference not set to an instance of an object". A rerun of the job passes. Seen on 2026-11-22 three times: on main before the 0.9.1 tags, on #166 and on #167. Locally the same code gives no findings.

Related: #39 (the job hung after such an error; a timeout fixed the hang, not the crash).

Not affected: the analysis result itself; the crash happens before findings are reported.

Next step: run the analyzer per file in CI to see which file or rule triggers it, check the pinned PSScriptAnalyzer version against its open issues upstream, then either pin a fixed version or retry the step once with a log line.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions