From 54557a3334c614a2a62ff6bfe0182fb12ba6fcad Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Wed, 1 Jul 2026 20:06:00 +0200 Subject: [PATCH 1/2] Update generate-pester-docs.yml workflow Update runner image and actions to fix node v20 deprecation notice. Enable commit signing for PRs --- .github/workflows/generate-pester-docs.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate-pester-docs.yml b/.github/workflows/generate-pester-docs.yml index 44d73a0..ee03290 100644 --- a/.github/workflows/generate-pester-docs.yml +++ b/.github/workflows/generate-pester-docs.yml @@ -21,7 +21,7 @@ on: jobs: generate_docs: name: Docs PR - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest env: PESTER: ${{ github.event.inputs.pester_version }} DOCS: ${{ github.event.inputs.docs_version }} @@ -35,7 +35,7 @@ jobs: echo "${{ env.PESTER }}" | grep -P '^\d+.\d+.\d+(?:-\w+)?$' - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 # Pester 6 ships a .NET 8 assembly and requires PowerShell 7.4+, so we use the # runner's default PowerShell. The spurious ProgressAction parameter that PlatyPS @@ -62,7 +62,7 @@ jobs: $updated = $null -ne (git status -s | Select-String '/usage/Configuration.mdx') "updated=$updated" >> $env:GITHUB_OUTPUT - name: Create Pull Request - uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5 + uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 id: create-pr env: PR_BRANCH: "docs-update/${{ env.DOCS }}-v${{ env.PESTER }}" @@ -74,10 +74,11 @@ jobs: # Should always be reviewed by author to fix typos or other errors reviewers: ${{ github.actor }} # Set user triggering the workflow as author (default in action) - author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> + #author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> # Github Action as commit (explicit default) committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit-message: "Update generated docs to ${{ env.PESTER }}" + sign-commits: true add-paths: | docs versioned_docs @@ -86,7 +87,7 @@ jobs: Updates generated documentation using the specified Pester-version. **Docs version:** ${{ env.DOCS }} - **Pester version:** ${{ env.PESTER }} + **Pester version:** ${{ env.PESTER }}d email address in the format `Display Name `. Defaults to the user who triggered the workflow run. | Documentation updated | Result | |-----------------------|--------| From 3ce9f66b1a3089de8b92298959211142b828c3aa Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Wed, 1 Jul 2026 20:15:38 +0200 Subject: [PATCH 2/2] Update generate-pester-docs.yml Fix copy paste error and revert commit signing as it blocks author-attribution. --- .github/workflows/generate-pester-docs.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/generate-pester-docs.yml b/.github/workflows/generate-pester-docs.yml index ee03290..3f27221 100644 --- a/.github/workflows/generate-pester-docs.yml +++ b/.github/workflows/generate-pester-docs.yml @@ -73,12 +73,7 @@ jobs: draft: false # Should always be reviewed by author to fix typos or other errors reviewers: ${{ github.actor }} - # Set user triggering the workflow as author (default in action) - #author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> - # Github Action as commit (explicit default) - committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit-message: "Update generated docs to ${{ env.PESTER }}" - sign-commits: true add-paths: | docs versioned_docs @@ -87,7 +82,7 @@ jobs: Updates generated documentation using the specified Pester-version. **Docs version:** ${{ env.DOCS }} - **Pester version:** ${{ env.PESTER }}d email address in the format `Display Name `. Defaults to the user who triggered the workflow run. + **Pester version:** ${{ env.PESTER }} | Documentation updated | Result | |-----------------------|--------|