From 8f999ecdd1af31d41e2f166274c7c9db4c342796 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 22 Jan 2026 19:18:48 +0100 Subject: [PATCH 1/8] Configure Dependabot for daily schedule with 7-day cooldown --- .github/dependabot.yml | 4 +++- .github/release.yml | 18 ------------------ .github/workflows/Action-Test.yml | 14 +++++++------- .github/workflows/Auto-Release.yml | 4 ++-- .github/workflows/Linter.yml | 4 ++-- 5 files changed, 14 insertions(+), 30 deletions(-) delete mode 100644 .github/release.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 53188fe..0da2fac 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,4 +11,6 @@ updates: - dependencies - github-actions schedule: - interval: weekly + interval: daily + cooldown: + default-days: 7 diff --git a/.github/release.yml b/.github/release.yml deleted file mode 100644 index 35c6ae8..0000000 --- a/.github/release.yml +++ /dev/null @@ -1,18 +0,0 @@ -# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes - -changelog: - exclude: - labels: - - NoRelease - categories: - - title: 🌟 Breaking Changes - labels: - - Major - - Breaking - - title: 🚀 New Features - labels: - - Minor - - Feature - - title: Other Changes - labels: - - '*' diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index ef10be0..65f3f72 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -25,7 +25,7 @@ jobs: Conclusion: ${{ steps.action-test.conclusion }} steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false @@ -50,7 +50,7 @@ jobs: Conclusion: ${{ steps.action-test.conclusion }} steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false @@ -76,7 +76,7 @@ jobs: Conclusion: ${{ steps.action-test.conclusion }} steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false @@ -103,7 +103,7 @@ jobs: Conclusion: ${{ steps.action-test.conclusion }} steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false @@ -129,7 +129,7 @@ jobs: Conclusion: ${{ steps.action-test.conclusion }} steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false @@ -169,11 +169,11 @@ jobs: OutputsConclusion: ${{ needs.ActionTestOutputs.outputs.Conclusion }} steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - name: Aggregated Status - uses: PSModule/Github-Script@v1 + uses: PSModule/GitHub-Script@2010983167dc7a41bcd84cb88e698ec18eccb7ca # v1.7.8 with: Script: tests/Get-AggregatedStatus.ps1 diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Auto-Release.yml index bbe9c34..8934eab 100644 --- a/.github/workflows/Auto-Release.yml +++ b/.github/workflows/Auto-Release.yml @@ -26,11 +26,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - name: Auto-Release - uses: PSModule/Auto-Release@v1 + uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5 with: IncrementalPrerelease: false diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 319e104..9137b90 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -19,13 +19,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false fetch-depth: 0 - name: Lint code base - uses: super-linter/super-linter@latest + uses: super-linter/super-linter@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2 env: GITHUB_TOKEN: ${{ github.token }} VALIDATE_JSON_PRETTIER: false From ad6d5207d7d9d330cc378fa4d1e80e9f85f1b16c Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 22 Jan 2026 21:53:37 +0100 Subject: [PATCH 2/8] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20dependen?= =?UTF-8?q?cies=20for=20GitHub-Script=20and=20Invoke-Pester=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 79c9988..01c5934 100644 --- a/action.yml +++ b/action.yml @@ -248,7 +248,7 @@ runs: using: composite steps: - name: Get-TestPaths - uses: PSModule/Github-Script@v1 + uses: PSModule/GitHub-Script@2010983167dc7a41bcd84cb88e698ec18eccb7ca # v1.7.8 id: paths env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path: ${{ inputs.Path }} @@ -262,7 +262,7 @@ runs: Script: ${{ github.action_path }}/scripts/main.ps1 - name: Invoke-Pester - uses: PSModule/Invoke-Pester@v4 + uses: PSModule/Invoke-Pester@882994cbe1ff07c3fc8afdac52404c940f99b331 # v4.2.2 id: test env: SettingsFilePath: ${{ fromJson(steps.paths.outputs.result).SettingsFilePath }} From c50ca73fda1eaa5fcbafd80efec5c45b77901f11 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 18:31:56 +0100 Subject: [PATCH 3/8] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Fix=20typo=20in?= =?UTF-8?q?=20README=20regarding=20action=20output=20logs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d109b4a..37dfb24 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ The action provides the following outputs: To be clear; the action follows the settings file to determine which rules to skip. 4. **View the Results** - The action outputs the results of the tests to goth logs and step summary. If the tests pass, the actions `outcome` will be `success`. + The action outputs the results of the tests to both logs and step summary. If the tests pass, the actions `outcome` will be `success`. If the tests fail, the actions outcome will be `failure`. To make the workflow continue even if the tests fail, you can set the `continue-on-error` option to `true`. Use this built-in feature to stop the workflow from failing so that you can aggregate the status of tests across multiple jobs. From bf6584ca40185859eb70b4e2505e3d7c48bc4a17 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 21:32:20 +0100 Subject: [PATCH 4/8] =?UTF-8?q?=F0=9F=A9=B9=20[Refactor]:=20Remove=20depre?= =?UTF-8?q?cated=20Auto-Release=20workflow=20and=20scripts;=20restructure?= =?UTF-8?q?=20paths=20in=20Invoke-ScriptAnalyzer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{Auto-Release.yml => Release.yml} | 13 ++++++++----- action.yml | 4 ++-- {scripts => src}/main.ps1 | 0 .../PSScriptAnalyzer.Configuration.ps1 | 0 .../PSScriptAnalyzer/PSScriptAnalyzer.Container.ps1 | 0 .../PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1 | 0 6 files changed, 10 insertions(+), 7 deletions(-) rename .github/workflows/{Auto-Release.yml => Release.yml} (72%) rename {scripts => src}/main.ps1 (100%) rename {scripts => src}/tests/PSScriptAnalyzer/PSScriptAnalyzer.Configuration.ps1 (100%) rename {scripts => src}/tests/PSScriptAnalyzer/PSScriptAnalyzer.Container.ps1 (100%) rename {scripts => src}/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1 (100%) diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Release.yml similarity index 72% rename from .github/workflows/Auto-Release.yml rename to .github/workflows/Release.yml index 8934eab..3cb8396 100644 --- a/.github/workflows/Auto-Release.yml +++ b/.github/workflows/Release.yml @@ -1,9 +1,9 @@ -name: Auto-Release +name: Release -run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" +run-name: "Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" on: - pull_request_target: + pull_request: branches: - main types: @@ -12,6 +12,9 @@ on: - reopened - synchronize - labeled + paths: + - 'action.yml' + - 'src/**' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -22,7 +25,7 @@ permissions: pull-requests: write jobs: - Auto-Release: + Release: runs-on: ubuntu-latest steps: - name: Checkout Code @@ -30,7 +33,7 @@ jobs: with: persist-credentials: false - - name: Auto-Release + - name: Release uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5 with: IncrementalPrerelease: false diff --git a/action.yml b/action.yml index 01c5934..68c70ac 100644 --- a/action.yml +++ b/action.yml @@ -259,7 +259,7 @@ runs: Verbose: ${{ inputs.Verbose }} Version: ${{ inputs.Version }} WorkingDirectory: ${{ inputs.WorkingDirectory }} - Script: ${{ github.action_path }}/scripts/main.ps1 + Script: ${{ github.action_path }}/src/main.ps1 - name: Invoke-Pester uses: PSModule/Invoke-Pester@882994cbe1ff07c3fc8afdac52404c940f99b331 # v4.2.2 @@ -273,7 +273,7 @@ runs: Version: ${{ inputs.Version }} WorkingDirectory: ${{ inputs.WorkingDirectory }} TestResult_TestSuiteName: ${{ inputs.TestResult_TestSuiteName }} - Path: ${{ github.action_path }}/scripts/tests/PSScriptAnalyzer + Path: ${{ github.action_path }}/src/tests/PSScriptAnalyzer Run_Path: ${{ fromJson(steps.paths.outputs.result).CodePath }} ReportAsJson: ${{ inputs.ReportAsJson }} Notice_Mode: ${{ inputs.Notice_Mode }} diff --git a/scripts/main.ps1 b/src/main.ps1 similarity index 100% rename from scripts/main.ps1 rename to src/main.ps1 diff --git a/scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Configuration.ps1 b/src/tests/PSScriptAnalyzer/PSScriptAnalyzer.Configuration.ps1 similarity index 100% rename from scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Configuration.ps1 rename to src/tests/PSScriptAnalyzer/PSScriptAnalyzer.Configuration.ps1 diff --git a/scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Container.ps1 b/src/tests/PSScriptAnalyzer/PSScriptAnalyzer.Container.ps1 similarity index 100% rename from scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Container.ps1 rename to src/tests/PSScriptAnalyzer/PSScriptAnalyzer.Container.ps1 diff --git a/scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1 b/src/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1 similarity index 100% rename from scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1 rename to src/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1 From 4347c8276b345b7ab7baaa453ef5d863c8ff0afd Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 22:01:32 +0100 Subject: [PATCH 5/8] Disable JSCPD linter and remove configuration file --- .github/linters/.jscpd.json | 11 ----------- .github/workflows/Linter.yml | 7 ++++--- 2 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 .github/linters/.jscpd.json diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json deleted file mode 100644 index 88330de..0000000 --- a/.github/linters/.jscpd.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "threshold": 0, - "reporters": [ - "consoleFull" - ], - "ignore": [ - "**/tests/**", - "**/.github/workflows/Action-Test.yml" - ], - "absolute": true -} diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 9137b90..c06a3db 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -28,10 +28,11 @@ jobs: uses: super-linter/super-linter@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2 env: GITHUB_TOKEN: ${{ github.token }} - VALIDATE_JSON_PRETTIER: false - VALIDATE_MARKDOWN_PRETTIER: false - VALIDATE_YAML_PRETTIER: false VALIDATE_BIOME_FORMAT: false VALIDATE_BIOME_LINT: false VALIDATE_GITHUB_ACTIONS_ZIZMOR: false + VALIDATE_JSCPD: false + VALIDATE_JSON_PRETTIER: false + VALIDATE_MARKDOWN_PRETTIER: false + VALIDATE_YAML_PRETTIER: false FILTER_REGEX_EXCLUDE: '.*Set-PSModuleTest\.ps1$' From 69da2f0e069a491db05a8c816dc29361058475bb Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 22:32:20 +0100 Subject: [PATCH 6/8] Rename Auto-Release to Release-GHRepository --- .github/workflows/Release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 3cb8396..38fbd49 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -34,6 +34,6 @@ jobs: persist-credentials: false - name: Release - uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5 + uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2 with: IncrementalPrerelease: false From 72296cf56d19dd985bd18d0d05e3f191a1eb99f1 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 22:44:42 +0100 Subject: [PATCH 7/8] Fix version comment to use patch level --- .github/workflows/Release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 38fbd49..15ea61e 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -34,6 +34,6 @@ jobs: persist-credentials: false - name: Release - uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2 + uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2.0.1 with: IncrementalPrerelease: false From c0fb00a72fc0bf95dbcd5cc01e73cef4cd9f8664 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 23:05:58 +0100 Subject: [PATCH 8/8] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20GitHub-Script?= =?UTF-8?q?=20to=20v1.7.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Action-Test.yml | 2 +- action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index 65f3f72..366492f 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -174,6 +174,6 @@ jobs: persist-credentials: false - name: Aggregated Status - uses: PSModule/GitHub-Script@2010983167dc7a41bcd84cb88e698ec18eccb7ca # v1.7.8 + uses: PSModule/GitHub-Script@0097f3bbe3f413f3b577b9bcc600727b0ca3201a # v1.7.10 with: Script: tests/Get-AggregatedStatus.ps1 diff --git a/action.yml b/action.yml index 68c70ac..8fb49df 100644 --- a/action.yml +++ b/action.yml @@ -248,7 +248,7 @@ runs: using: composite steps: - name: Get-TestPaths - uses: PSModule/GitHub-Script@2010983167dc7a41bcd84cb88e698ec18eccb7ca # v1.7.8 + uses: PSModule/GitHub-Script@0097f3bbe3f413f3b577b9bcc600727b0ca3201a # v1.7.10 id: paths env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path: ${{ inputs.Path }}