From 223681f9df27e455c89dc057e2370a1fd8e58061 Mon Sep 17 00:00:00 2001 From: Trent Blackburn Date: Wed, 8 Apr 2026 20:37:51 -0400 Subject: [PATCH 1/3] fix: Skip PSScriptAnalyzer install on cache hit The lint job was unconditionally running Install-Module even when the module was already restored from cache. This caused Install-Module -Force to conflict with the already-loaded cached module, which can trigger a NullReferenceException in PSScriptAnalyzer. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/CI.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index ec2ca0a..ffdf08b 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -18,6 +18,7 @@ jobs: - uses: actions/checkout@v6 - name: Cache PowerShell modules + id: cache-lint-modules uses: actions/cache@v5 with: path: ~/.local/share/powershell/Modules @@ -26,6 +27,7 @@ jobs: ${{ runner.os }}-psmodules-lint- - name: Install PSScriptAnalyzer + if: steps.cache-lint-modules.outputs.cache-hit != 'true' shell: pwsh run: | Set-PSRepository -Name PSGallery -InstallationPolicy Trusted From f08c7e3c26179bf71426307d6da32042dd1da4fd Mon Sep 17 00:00:00 2001 From: Trent Blackburn Date: Thu, 9 Apr 2026 15:19:37 -0400 Subject: [PATCH 2/3] ci: trigger CI workflow run From 75e7900d913eaaf4a27f52e0b47c781012f13603 Mon Sep 17 00:00:00 2001 From: Trent Blackburn Date: Thu, 9 Apr 2026 15:21:27 -0400 Subject: [PATCH 3/3] ci: add workflow_dispatch trigger to CI workflow --- .github/workflows/CI.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index ffdf08b..68c2b42 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -5,6 +5,7 @@ on: branches: [main] pull_request: branches: [main] + workflow_dispatch: permissions: contents: read