From fabf4c2b0ae171d634a74abe3974686badfc4dd9 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 11:51:34 +0200 Subject: [PATCH 1/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Specify=20owner?= =?UTF-8?q?=20in=20Get-GitHubRepository=20calls=20for=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/TestWorkflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/TestWorkflow.yml b/.github/workflows/TestWorkflow.yml index 18aa01f..5e7d60b 100644 --- a/.github/workflows/TestWorkflow.yml +++ b/.github/workflows/TestWorkflow.yml @@ -412,7 +412,7 @@ jobs: } LogGroup 'Get-GitHubRepository' { - Get-GitHubRepository | Out-String + Get-GitHubRepository -Owner PSModule | Out-String } ActionTestWithUSERFGPAT: @@ -438,7 +438,7 @@ jobs: } LogGroup 'Get-GitHubRepository' { - Get-GitHubRepository | Out-String + Get-GitHubRepository -Owner PSModule | Out-String } ActionTestWithORGFGPAT: @@ -464,7 +464,7 @@ jobs: } LogGroup 'Get-GitHubRepository' { - Get-GitHubRepository | Out-String + Get-GitHubRepository -Owner PSModule | Out-String } ActionTestWithGitHubAppEnt: From 66b4598cd365ff8cbb8b5fa4fcb329f53e5be99f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 12:14:14 +0200 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20debug=20out?= =?UTF-8?q?put=20for=20virtual=20terminal=20support=20and=20environment=20?= =?UTF-8?q?type=20in=20Action-Test=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/TestWorkflow.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/TestWorkflow.yml b/.github/workflows/TestWorkflow.yml index 5e7d60b..b7946f6 100644 --- a/.github/workflows/TestWorkflow.yml +++ b/.github/workflows/TestWorkflow.yml @@ -403,6 +403,11 @@ jobs: Token: ${{ secrets.TEST_USER_PAT }} Prerelease: ${{ inputs.Prerelease }} Script: | + Write-Host "SupportsVirtualTerminal: $($Host.UI.SupportsVirtualTerminal)" + Write-Host "EnvironmentType: $($script:GitHub.EnvironmentType)" + $printLink = $Host.UI.SupportsVirtualTerminal -and $script:GitHub.EnvironmentType -ne 'GHA' + Write-Host "Print links: $printLink" + LogGroup 'Get-GitHubUser' { Get-GitHubUser | Format-Table -AutoSize | Out-String } From 52df5a64d00cf5384a5b65e620a9080f24699895 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 12:14:49 +0200 Subject: [PATCH 3/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20debug=20out?= =?UTF-8?q?put=20for=20GITHUB=5FACTIONS=20environment=20in=20Action-Test?= =?UTF-8?q?=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/TestWorkflow.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/TestWorkflow.yml b/.github/workflows/TestWorkflow.yml index b7946f6..3ecc274 100644 --- a/.github/workflows/TestWorkflow.yml +++ b/.github/workflows/TestWorkflow.yml @@ -405,9 +405,10 @@ jobs: Script: | Write-Host "SupportsVirtualTerminal: $($Host.UI.SupportsVirtualTerminal)" Write-Host "EnvironmentType: $($script:GitHub.EnvironmentType)" + Write-Host "GHA? $($env:GITHUB_ACTIONS -eq 'true')" $printLink = $Host.UI.SupportsVirtualTerminal -and $script:GitHub.EnvironmentType -ne 'GHA' Write-Host "Print links: $printLink" - + LogGroup 'Get-GitHubUser' { Get-GitHubUser | Format-Table -AutoSize | Out-String } From f2ffeb4a54c1ccaf7ff8a9dee67f1ab389fc854d Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 12:20:26 +0200 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Remove=20debug=20?= =?UTF-8?q?output=20for=20virtual=20terminal=20support=20and=20environment?= =?UTF-8?q?=20type=20in=20Action-Test=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/TestWorkflow.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/TestWorkflow.yml b/.github/workflows/TestWorkflow.yml index 3ecc274..5e7d60b 100644 --- a/.github/workflows/TestWorkflow.yml +++ b/.github/workflows/TestWorkflow.yml @@ -403,12 +403,6 @@ jobs: Token: ${{ secrets.TEST_USER_PAT }} Prerelease: ${{ inputs.Prerelease }} Script: | - Write-Host "SupportsVirtualTerminal: $($Host.UI.SupportsVirtualTerminal)" - Write-Host "EnvironmentType: $($script:GitHub.EnvironmentType)" - Write-Host "GHA? $($env:GITHUB_ACTIONS -eq 'true')" - $printLink = $Host.UI.SupportsVirtualTerminal -and $script:GitHub.EnvironmentType -ne 'GHA' - Write-Host "Print links: $printLink" - LogGroup 'Get-GitHubUser' { Get-GitHubUser | Format-Table -AutoSize | Out-String } From 377f99b78b35e125f5c85562fe7ffade05f33a7c Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 13:42:54 +0200 Subject: [PATCH 5/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Remove=20checkov?= =?UTF-8?q?=20skip=20comment=20for=20improved=20readability=20in=20Action-?= =?UTF-8?q?Test=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Action-Test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index fbaa046..77b6918 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -1,4 +1,3 @@ -# checkov:skip=CKV_GHA_7:Using tag references for better readability and maintenance name: Action-Test run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" From 72a522c70da1fc9741eb53228e142bc1af9b966f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 15:31:38 +0200 Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20Owner=20inp?= =?UTF-8?q?ut=20to=20workflow=20and=20update=20Get-GitHubRepository=20call?= =?UTF-8?q?s=20for=20flexibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/TestWorkflow.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/TestWorkflow.yml b/.github/workflows/TestWorkflow.yml index 5e7d60b..71831dc 100644 --- a/.github/workflows/TestWorkflow.yml +++ b/.github/workflows/TestWorkflow.yml @@ -10,6 +10,11 @@ on: required: false type: boolean default: false + Owner: + description: The owner of the repository + required: false + type: string + default: PSModule secrets: TEST_USER_PAT: description: Personal Access Token for the test user @@ -412,7 +417,7 @@ jobs: } LogGroup 'Get-GitHubRepository' { - Get-GitHubRepository -Owner PSModule | Out-String + Get-GitHubRepository -Owner '${{ inputs.Owner }}' | Out-String } ActionTestWithUSERFGPAT: @@ -438,7 +443,7 @@ jobs: } LogGroup 'Get-GitHubRepository' { - Get-GitHubRepository -Owner PSModule | Out-String + Get-GitHubRepository -Owner '${{ inputs.Owner }}' | Out-String } ActionTestWithORGFGPAT: @@ -464,7 +469,7 @@ jobs: } LogGroup 'Get-GitHubRepository' { - Get-GitHubRepository -Owner PSModule | Out-String + Get-GitHubRepository -Owner '${{ inputs.Owner }}' | Out-String } ActionTestWithGitHubAppEnt: