From 15be410a2b06fbe1f7bfff887a2721af64f52d6e Mon Sep 17 00:00:00 2001 From: Ben Spoor <37540691+ben-edna@users.noreply.github.com> Date: Thu, 8 Jan 2026 09:05:28 +0100 Subject: [PATCH 1/2] Add permissions for landing page workflow --- .github/workflows/docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2438249b7..86cbc7684 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -34,6 +34,8 @@ jobs: landing-page: name: Landing page runs-on: ubuntu-latest + permissions: + contents: write # For publishing landing page steps: - name: Harden the runner (Audit all outbound calls) uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 From 8a5c3c934a77bf45c64ae26d4e2516a49f083204 Mon Sep 17 00:00:00 2001 From: Ben Spoor <37540691+ben-edna@users.noreply.github.com> Date: Fri, 9 Jan 2026 16:04:00 +0000 Subject: [PATCH 2/2] Migrate to peaceiris/actions-gh-pages --- .github/workflows/docs.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 86cbc7684..7b3237c6f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -34,8 +34,6 @@ jobs: landing-page: name: Landing page runs-on: ubuntu-latest - permissions: - contents: write # For publishing landing page steps: - name: Harden the runner (Audit all outbound calls) uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 @@ -59,9 +57,9 @@ jobs: - name: Publish if: github.ref == 'refs/heads/main' - uses: tsunematsu21/actions-publish-gh-pages@c04b531c52b8f9d25c596bc6e6a7ddc116b2f3f8 # v1.0.2 + uses: peaceiris/actions-gh-pages@4b09552702d0b65573696410d4707c765da2630b # v4.0.0 with: - dir: doc/landing-page/_build/html - repo: dfetch-org/dfetch-org.github.io - branch: main - token: ${{ secrets.GH_DFETCH_ORG_DEPLOY }} + publish_dir: ./doc/landing-page/_build/html + external_repository: dfetch-org/dfetch-org.github.io + publish_branch: main + deploy_key: ${{ secrets.GH_DFETCH_ORG_DEPLOY }}