From e845bab767b7dd5114bac8db0b20a65a58e08cbc Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Thu, 22 Oct 2026 23:26:07 +0200 Subject: [PATCH] feat: add Dependabot configuration and enhance PSScriptAnalyzer workflow (#853) --- .github/dependabot.yml | 6 ++++++ .github/workflows/tests.yml | 20 +++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8ac6b8c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0b95720..f9228f8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,10 +17,28 @@ jobs: timeout-minutes: 15 steps: - name: Check out repository - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: persist-credentials: false - name: Run tests shell: powershell run: ./Scripts/Run-Tests.ps1 -Bootstrap + + psscriptanalyzer: + name: PSScriptAnalyzer (Error severity) + runs-on: windows-latest + timeout-minutes: 15 + steps: + - name: Check out repository + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + persist-credentials: false + + - name: Run PSScriptAnalyzer + shell: powershell + run: | + $ErrorActionPreference = 'Stop' + Install-Module -Name PSScriptAnalyzer -Scope CurrentUser -Force -Confirm:$false + Import-Module PSScriptAnalyzer + Invoke-ScriptAnalyzer -Path . -Recurse -Severity Error -EnableExit