From 1cdd5b9f3a11f31caa029b6123998159f2b4013c Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 20 Sep 2025 15:34:32 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20JSON=20logg?= =?UTF-8?q?ing=20for=20Host=20and=20PSStyle=20contexts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/main.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 09bbec6..1031c67 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -130,6 +130,10 @@ LogGroup 'Host' { $Host | Select-Object * | Format-List | Out-String } +LogGroup 'Host - Json' { + Write-Host "$($Host | ConvertTo-Json -Depth 10)" +} + LogGroup 'MyInvocation' { $MyInvocation | Select-Object * | Format-List | Out-String } @@ -145,3 +149,7 @@ LogGroup 'PSSessionOption' { LogGroup 'PSStyle' { $PSStyle | Select-Object * | Format-List | Out-String } + +LogGroup 'PSStyle - Json' { + Write-Host "$($PSStyle | ConvertTo-Json -Depth 10)" +} From 39d61fe4f2b13b6c498fa13d18f8d7bfaf5efe07 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 20 Sep 2025 15:39:39 +0200 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Simplify=20JSON?= =?UTF-8?q?=20output=20for=20Host=20and=20PSStyle=20contexts=20by=20reduci?= =?UTF-8?q?ng=20depth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/main.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 1031c67..135c99e 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -131,7 +131,7 @@ LogGroup 'Host' { } LogGroup 'Host - Json' { - Write-Host "$($Host | ConvertTo-Json -Depth 10)" + $Host | ConvertTo-Json -Depth 3 } LogGroup 'MyInvocation' { @@ -151,5 +151,5 @@ LogGroup 'PSStyle' { } LogGroup 'PSStyle - Json' { - Write-Host "$($PSStyle | ConvertTo-Json -Depth 10)" + $PSStyle | ConvertTo-Json -Depth 3 } From aecbbd97c7fb0734b0d4cbb09e0b608ea88df36a Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 20 Sep 2025 15:45:15 +0200 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20examples?= =?UTF-8?q?=20in=20Set-MaskedValue=20function=20to=20use=20placeholder=20t?= =?UTF-8?q?okens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/Helpers.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Helpers.psm1 b/scripts/Helpers.psm1 index 1cde2ff..1f4ae93 100644 --- a/scripts/Helpers.psm1 +++ b/scripts/Helpers.psm1 @@ -12,7 +12,7 @@ If no match is found, the original value is returned unaltered. .EXAMPLE - Set-MaskedValue -Value 'github_pat_1234567890123456789012' + Set-MaskedValue -Value '' Output: ```powershell @@ -22,7 +22,7 @@ Masks a GitHub fine-grained personal access token. .EXAMPLE - Set-MaskedValue -Value 'ghp_abcdefghijklmnopqrstuvwxyz0123456789' #gitleaks:allow + Set-MaskedValue -Value '' Output: ```powershell From 466298d6aae0df07124dcf71bb960c0e588a86d0 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 20 Sep 2025 16:02:09 +0200 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20GitHub?= =?UTF-8?q?=20Actions=20checkout=20to=20version=205=20in=20workflow=20file?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/Action-Test.yml | 2 +- .github/workflows/Auto-Release.yml | 4 ++-- .github/workflows/Linter.yml | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f57e1e9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: github-actions # See documentation for possible values + directory: / # Location of package manifests + schedule: + interval: weekly diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index 3936e4e..7af5006 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -29,7 +29,7 @@ jobs: steps: # Need to check out as part of the test, as its a local action - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Action-Test uses: ./ diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Auto-Release.yml index 1a580b8..0fe6aad 100644 --- a/.github/workflows/Auto-Release.yml +++ b/.github/workflows/Auto-Release.yml @@ -25,8 +25,8 @@ jobs: Auto-Release: runs-on: ubuntu-latest steps: - - name: Checkout Code - uses: actions/checkout@v4 + - name: Checkout repo + uses: actions/checkout@v5 - name: Auto-Release uses: PSModule/Auto-Release@v1 diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 1f677cb..94f34b0 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0