From 6685512dbf99d200bb878da55dd19e290a44912d Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 22 Jan 2026 19:17:35 +0100 Subject: [PATCH 1/9] Configure Dependabot for daily schedule with 7-day cooldown --- .github/dependabot.yml | 4 +++- .github/release.yml | 18 ------------------ .github/workflows/Action-Test.yml | 12 ++++++------ .github/workflows/Auto-Release.yml | 4 ++-- .github/workflows/Linter.yml | 4 ++-- 5 files changed, 13 insertions(+), 29 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 c1a89fb..df57798 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -23,11 +23,11 @@ jobs: steps: # Need to check out as part of the test, as its a local action - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 # Upload artifact from tests: - name: Upload artifact [PATH-Windows-TestResults] - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: PATH-Windows-TestResults path: ./tests/TestResults/PATH-Windows-TestResults @@ -35,7 +35,7 @@ jobs: if-no-files-found: error - name: Upload artifact [PSModuleLint-Module-Windows-TestResults] - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: PSModuleLint-Module-Windows-TestResults path: ./tests/TestResults/PSModuleLint-Module-Windows-TestResults @@ -43,7 +43,7 @@ jobs: if-no-files-found: error - name: Upload artifact [PSModuleLint-SourceCode-Windows-TestResults] - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: PSModuleLint-SourceCode-Windows-TestResults path: ./tests/TestResults/PSModuleLint-SourceCode-Windows-TestResults @@ -51,7 +51,7 @@ jobs: if-no-files-found: error - name: Upload artifact [PSModuleTest-Module-Windows-TestResults] - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: PSModuleTest-Module-Windows-TestResults path: ./tests/TestResults/PSModuleTest-Module-Windows-TestResults @@ -59,7 +59,7 @@ jobs: if-no-files-found: error - name: Upload artifact [PSModuleTest-SourceCode-Windows-TestResults] - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: PSModuleTest-SourceCode-Windows-TestResults path: ./tests/TestResults/PSModuleTest-SourceCode-Windows-TestResults diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Auto-Release.yml index 98a4f49..a460c09 100644 --- a/.github/workflows/Auto-Release.yml +++ b/.github/workflows/Auto-Release.yml @@ -26,8 +26,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Auto-Release - uses: PSModule/Auto-Release@v1 + uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5 diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 1962629..7ed0fe3 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -19,12 +19,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: 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 0792257b308dd0c2f1821c766ba63ea563959277 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 22 Jan 2026 21:53:09 +0100 Subject: [PATCH 2/9] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20GitHub?= =?UTF-8?q?=20Script=20action=20to=20specific=20version=20v1.7.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e0f3723..ddc1a8c 100644 --- a/action.yml +++ b/action.yml @@ -39,7 +39,7 @@ runs: using: composite steps: - name: Get-PesterTestResults - uses: PSModule/GitHub-Script@v1 + uses: PSModule/GitHub-Script@2010983167dc7a41bcd84cb88e698ec18eccb7ca # v1.7.8 env: PSMODULE_GET_PESTERTESTRESULTS_INPUT_SourceCodeTestSuites: ${{ inputs.SourceCodeTestSuites }} PSMODULE_GET_PESTERTESTRESULTS_INPUT_PSModuleTestSuites: ${{ inputs.PSModuleTestSuites }} From dcf2c798bd46aaa10c0e449971986a0da8b5ed57 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 18:33:27 +0100 Subject: [PATCH 3/9] =?UTF-8?q?=F0=9F=93=9D=20[Fix]:=20Correct=20typo=20in?= =?UTF-8?q?=20action=20description=20for=20clarity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ddc1a8c..eb0c9cc 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ name: Get-PesterTestResults -description: A GitHub Action that is used to gather testreulst for the PSModule process. +description: A GitHub Action that is used to gather test results for the PSModule process. author: PSModule branding: icon: upload-cloud From 79cbb8657e1a4f26c2c255d4f726ab9ee32a8dab Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 21:31:12 +0100 Subject: [PATCH 4/9] =?UTF-8?q?=F0=9F=A9=B9=20[Refactor]:=20Remove=20Auto-?= =?UTF-8?q?Release=20workflow=20and=20restructure=20main=20script=20locati?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/{Auto-Release.yml => Release.yml} | 15 ++++++++++----- action.yml | 2 +- {scripts => src}/main.ps1 | 0 3 files changed, 11 insertions(+), 6 deletions(-) rename .github/workflows/{Auto-Release.yml => Release.yml} (66%) rename {scripts => src}/main.ps1 (100%) diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Release.yml similarity index 66% rename from .github/workflows/Auto-Release.yml rename to .github/workflows/Release.yml index a460c09..33b0d56 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,12 +25,14 @@ permissions: pull-requests: write # Required to create comments on the PRs jobs: - Auto-Release: + Release: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - - name: Auto-Release + - name: Release uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5 diff --git a/action.yml b/action.yml index eb0c9cc..20993e3 100644 --- a/action.yml +++ b/action.yml @@ -53,4 +53,4 @@ runs: WorkingDirectory: ${{ inputs.WorkingDirectory }} ShowInfo: false Script: | - ${{ github.action_path }}/scripts/main.ps1 + ${{ github.action_path }}/src/main.ps1 diff --git a/scripts/main.ps1 b/src/main.ps1 similarity index 100% rename from scripts/main.ps1 rename to src/main.ps1 From 70f80061b51054b10a8d5edfd55ff2b8da884868 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 21:45:18 +0100 Subject: [PATCH 5/9] fix: Add persist-credentials: false to checkout actions --- .github/workflows/Action-Test.yml | 2 ++ .github/workflows/Linter.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index df57798..2b77531 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -24,6 +24,8 @@ jobs: # Need to check out as part of the test, as its a local action - name: Checkout repo uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false # Upload artifact from tests: - name: Upload artifact [PATH-Windows-TestResults] diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 7ed0fe3..377763a 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -22,11 +22,13 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 + persist-credentials: false - name: Lint code base uses: super-linter/super-linter@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2 env: GITHUB_TOKEN: ${{ github.token }} + VALIDATE_BIOME_FORMAT: false VALIDATE_JSON_PRETTIER: false VALIDATE_MARKDOWN_PRETTIER: false VALIDATE_YAML_PRETTIER: false From 1c56c9886e2597d4359887192ccd1c5fb2431561 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 22:00:57 +0100 Subject: [PATCH 6/9] Disable JSCPD linter and remove configuration file --- .github/linters/.jscpd.json | 10 ---------- .github/workflows/Linter.yml | 1 + 2 files changed, 1 insertion(+), 10 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 23970e8..0000000 --- a/.github/linters/.jscpd.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "threshold": 0, - "reporters": [ - "consoleFull" - ], - "ignore": [ - "**/tests/**" - ], - "absolute": true -} diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 377763a..3a07190 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -29,6 +29,7 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} VALIDATE_BIOME_FORMAT: false + VALIDATE_JSCPD: false VALIDATE_JSON_PRETTIER: false VALIDATE_MARKDOWN_PRETTIER: false VALIDATE_YAML_PRETTIER: false From 19ade6dd7902ff194c18fd486ea9e7df3553bcb8 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 22:31:44 +0100 Subject: [PATCH 7/9] 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 33b0d56..0610a29 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -34,5 +34,5 @@ jobs: persist-credentials: false - name: Release - uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5 + uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2 From e1b8de690a92572746bd90ca337097f6f97e53fe Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 22:44:09 +0100 Subject: [PATCH 8/9] 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 0610a29..9390559 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -34,5 +34,5 @@ jobs: persist-credentials: false - name: Release - uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2 + uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2.0.1 From 9992afbf325f2bee867357d832afb4d0446a665f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 23:05:45 +0100 Subject: [PATCH 9/9] =?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 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 20993e3..8adf2e2 100644 --- a/action.yml +++ b/action.yml @@ -39,7 +39,7 @@ runs: using: composite steps: - name: Get-PesterTestResults - uses: PSModule/GitHub-Script@2010983167dc7a41bcd84cb88e698ec18eccb7ca # v1.7.8 + uses: PSModule/GitHub-Script@0097f3bbe3f413f3b577b9bcc600727b0ca3201a # v1.7.10 env: PSMODULE_GET_PESTERTESTRESULTS_INPUT_SourceCodeTestSuites: ${{ inputs.SourceCodeTestSuites }} PSMODULE_GET_PESTERTESTRESULTS_INPUT_PSModuleTestSuites: ${{ inputs.PSModuleTestSuites }}