From c38d6f65e07999053cad2b5ea36a5dbb4bcbd01b Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 09:54:13 +0200 Subject: [PATCH 1/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Ensure=20Prerelea?= =?UTF-8?q?se=20input=20defaults=20to=20false=20in=20Action-Test=20workflo?= =?UTF-8?q?w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Action-Test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index a19cc64..30a2798 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -31,4 +31,4 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] with: runs-on: ${{ matrix.os }} - Prerelease: ${{ inputs.Prerelease }} + Prerelease: ${{ inputs.Prerelease || false }} From 038e28d66d0acb5d9adf92e505ca5a4a468cff45 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 10:14:36 +0200 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20logging=20f?= =?UTF-8?q?or=20GitHub=20organization=20and=20repository=20retrieval=20in?= =?UTF-8?q?=20Action=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/TestWorkflow.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/TestWorkflow.yml b/.github/workflows/TestWorkflow.yml index 28d7292..18aa01f 100644 --- a/.github/workflows/TestWorkflow.yml +++ b/.github/workflows/TestWorkflow.yml @@ -407,6 +407,14 @@ jobs: Get-GitHubUser | Format-Table -AutoSize | Out-String } + LogGroup 'Get-GitHubOrganization' { + Get-GitHubOrganization | Out-String + } + + LogGroup 'Get-GitHubRepository' { + Get-GitHubRepository | Out-String + } + ActionTestWithUSERFGPAT: name: WithUserFGPAT runs-on: ${{ inputs.runs-on }} @@ -425,6 +433,14 @@ jobs: Get-GitHubUser | Format-Table -AutoSize | Out-String } + LogGroup 'Get-GitHubOrganization' { + Get-GitHubOrganization | Out-String + } + + LogGroup 'Get-GitHubRepository' { + Get-GitHubRepository | Out-String + } + ActionTestWithORGFGPAT: name: WithOrgFGPAT runs-on: ${{ inputs.runs-on }} @@ -443,6 +459,14 @@ jobs: Get-GitHubUser | Format-Table -AutoSize | Out-String } + LogGroup 'Get-GitHubOrganization' { + Get-GitHubOrganization | Out-String + } + + LogGroup 'Get-GitHubRepository' { + Get-GitHubRepository | Out-String + } + ActionTestWithGitHubAppEnt: name: GitHubAppEnt runs-on: ${{ inputs.runs-on }} From 76a28960032dfe5cbcf58e6ea23aab18a331185e Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 10:24:27 +0200 Subject: [PATCH 3/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20Checkov=20c?= =?UTF-8?q?onfiguration=20to=20skip=20specific=20checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/linters/.checkov.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/linters/.checkov.yml diff --git a/.github/linters/.checkov.yml b/.github/linters/.checkov.yml new file mode 100644 index 0000000..f94f27c --- /dev/null +++ b/.github/linters/.checkov.yml @@ -0,0 +1,3 @@ +# Skip specific checks +skip-check: + - CKV_GHA_7 From 7ed1563c6964d4620a5d9d994fd08f0b95712b33 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 10:30:24 +0200 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20Action-T?= =?UTF-8?q?est=20workflow=20to=20skip=20Checkov=20CKV=5FGHA=5F7=20for=20im?= =?UTF-8?q?proved=20readability=20and=20maintenance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/linters/.checkov.yml | 3 --- .github/workflows/Action-Test.yml | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 .github/linters/.checkov.yml diff --git a/.github/linters/.checkov.yml b/.github/linters/.checkov.yml deleted file mode 100644 index f94f27c..0000000 --- a/.github/linters/.checkov.yml +++ /dev/null @@ -1,3 +0,0 @@ -# Skip specific checks -skip-check: - - CKV_GHA_7 diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index 30a2798..1165bde 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -1,3 +1,4 @@ +# 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 01597366fa278b8eb827e1febd80e2d3c99ff373 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 10:37:11 +0200 Subject: [PATCH 5/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Refactor=20Action?= =?UTF-8?q?-Test=20workflow=20to=20remove=20Prerelease=20input=20and=20cre?= =?UTF-8?q?ate=20separate=20Action-Test-Prerelease=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Action-Test-Prerelease.yml | 31 ++++++++++++++++++++ .github/workflows/Action-Test.yml | 6 ---- 2 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/Action-Test-Prerelease.yml diff --git a/.github/workflows/Action-Test-Prerelease.yml b/.github/workflows/Action-Test-Prerelease.yml new file mode 100644 index 0000000..bb12329 --- /dev/null +++ b/.github/workflows/Action-Test-Prerelease.yml @@ -0,0 +1,31 @@ +name: Action-Test-Prerelease + +run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" + +on: + workflow_dispatch: + inputs: + Prerelease: + type: boolean + default: false + description: Use the prerelease version of GitHub PowerShell module. + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + pull-requests: read + +jobs: + ActionTest: + uses: ./.github/workflows/TestWorkflow.yml + secrets: inherit + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + with: + runs-on: ${{ matrix.os }} + Prerelease: ${{ inputs.Prerelease }} diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index 1165bde..fbaa046 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -5,11 +5,6 @@ run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.eve on: workflow_dispatch: - inputs: - Prerelease: - type: boolean - default: false - description: Use the prerelease version of GitHub PowerShell module. pull_request: schedule: - cron: '0 0 * * *' @@ -32,4 +27,3 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] with: runs-on: ${{ matrix.os }} - Prerelease: ${{ inputs.Prerelease || false }} From aa48a17d3646d464eb63f5b6aba00f46d6250cc3 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 27 Jun 2025 10:40:53 +0200 Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Remove=20Prerelea?= =?UTF-8?q?se=20input=20from=20Action-Test-Prerelease=20workflow=20and=20s?= =?UTF-8?q?et=20it=20to=20true=20by=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Action-Test-Prerelease.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/Action-Test-Prerelease.yml b/.github/workflows/Action-Test-Prerelease.yml index bb12329..eb1c725 100644 --- a/.github/workflows/Action-Test-Prerelease.yml +++ b/.github/workflows/Action-Test-Prerelease.yml @@ -4,11 +4,6 @@ run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.eve on: workflow_dispatch: - inputs: - Prerelease: - type: boolean - default: false - description: Use the prerelease version of GitHub PowerShell module. concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -28,4 +23,4 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] with: runs-on: ${{ matrix.os }} - Prerelease: ${{ inputs.Prerelease }} + Prerelease: true