From a4bf8bbaf0809badf47ef9845533aa93ec84b686 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 22 Jan 2026 19:18:21 +0100 Subject: [PATCH 1/6] Configure Dependabot for daily schedule with 7-day cooldown --- .github/dependabot.yml | 4 +++- .github/release.yml | 18 ------------------ .github/workflows/Action-Test.yml | 2 +- .github/workflows/Auto-Release.yml | 4 ++-- .github/workflows/Linter.yml | 4 ++-- 5 files changed, 8 insertions(+), 24 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 228192c..a369b90 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -23,7 +23,7 @@ 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 - name: Action-Test uses: ./ diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Auto-Release.yml index dad9961..45568fc 100644 --- a/.github/workflows/Auto-Release.yml +++ b/.github/workflows/Auto-Release.yml @@ -26,9 +26,9 @@ 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 env: GITHUB_TOKEN: ${{ github.token }} 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 7fcb622d59a9aa2ed4773fb66360d1598b25bac9 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 21:32:17 +0100 Subject: [PATCH 2/6] feat: Add GitHub Actions workflow for automated release process - Created a new GitHub Actions workflow (`Release.yml`) to automate the release process on pull request events. - Configured permissions for creating releases and commenting on pull requests. feat: Implement Helpers module with versioning - Added `Helpers.psd1` and `Helpers.psm1` files to define the Helpers module with version `999.0.0`. - Implemented various utility functions for module management and dependency resolution. test: Add PSScriptAnalyzer configuration for Helpers module - Created `PSScriptAnalyzer.Tests.psd1` to define rules for code quality checks on the Helpers module. chore: Implement main script for module importation - Added `main.ps1` script to handle the importation of the Helpers module into the PowerShell session. - Ensured cleanup of previous module instances before importing the new version. --- .../workflows/{Auto-Release.yml => Release.yml} | 15 ++++++++++----- action.yml | 2 +- {scripts => src}/Helpers/Helpers.psd1 | 0 {scripts => src}/Helpers/Helpers.psm1 | 0 .../Helpers/PSScriptAnalyzer.Tests.psd1 | 0 {scripts => src}/main.ps1 | 0 6 files changed, 11 insertions(+), 6 deletions(-) rename .github/workflows/{Auto-Release.yml => Release.yml} (68%) rename {scripts => src}/Helpers/Helpers.psd1 (100%) rename {scripts => src}/Helpers/Helpers.psm1 (100%) rename {scripts => src}/Helpers/PSScriptAnalyzer.Tests.psd1 (100%) rename {scripts => src}/main.ps1 (100%) diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Release.yml similarity index 68% rename from .github/workflows/Auto-Release.yml rename to .github/workflows/Release.yml index 45568fc..47d3f27 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,13 +25,15 @@ 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 env: GITHUB_TOKEN: ${{ github.token }} diff --git a/action.yml b/action.yml index d8ec7e4..f3d6bd2 100644 --- a/action.yml +++ b/action.yml @@ -12,4 +12,4 @@ runs: shell: pwsh run: | # Install-PSModuleHelpers - ${{ github.action_path }}/scripts/main.ps1 + ${{ github.action_path }}/src/main.ps1 diff --git a/scripts/Helpers/Helpers.psd1 b/src/Helpers/Helpers.psd1 similarity index 100% rename from scripts/Helpers/Helpers.psd1 rename to src/Helpers/Helpers.psd1 diff --git a/scripts/Helpers/Helpers.psm1 b/src/Helpers/Helpers.psm1 similarity index 100% rename from scripts/Helpers/Helpers.psm1 rename to src/Helpers/Helpers.psm1 diff --git a/scripts/Helpers/PSScriptAnalyzer.Tests.psd1 b/src/Helpers/PSScriptAnalyzer.Tests.psd1 similarity index 100% rename from scripts/Helpers/PSScriptAnalyzer.Tests.psd1 rename to src/Helpers/PSScriptAnalyzer.Tests.psd1 diff --git a/scripts/main.ps1 b/src/main.ps1 similarity index 100% rename from scripts/main.ps1 rename to src/main.ps1 From 196a3aad305626e62eadd1c9cf3813a4533c78b1 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 21:45:34 +0100 Subject: [PATCH 3/6] 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 a369b90..4e9b548 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 - name: Action-Test uses: ./ 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 09c1c788381e6a56a283b8c4a212689bb0410e76 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 22:01:22 +0100 Subject: [PATCH 4/6] Disable JSCPD linter and remove configuration file --- .github/linters/.jscpd.json | 11 ----------- .github/workflows/Linter.yml | 1 + 2 files changed, 1 insertion(+), 11 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 5713916..0000000 --- a/.github/linters/.jscpd.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "threshold": 0, - "reporters": [ - "consoleFull" - ], - "ignore": [ - "**/tests/**", - "**/linters/**" - ], - "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 ac06ae7dccbb3ba7b36045bbd797ea58115bc1a2 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 22:32:06 +0100 Subject: [PATCH 5/6] 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 47d3f27..e180285 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 env: GITHUB_TOKEN: ${{ github.token }} From f9f3625f259e4bf8c41d2094d5ff958d95f42bb6 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 25 Jan 2026 22:44:28 +0100 Subject: [PATCH 6/6] 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 e180285..d8a2564 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 env: GITHUB_TOKEN: ${{ github.token }}