From 2eed230a4a565420e9577d63ecbc41ffcb8a23cf Mon Sep 17 00:00:00 2001 From: dwshetty <32707268+dwshetty@users.noreply.github.com> Date: Sat, 30 May 2026 21:33:36 +0530 Subject: [PATCH 1/2] Update GitHub Actions workflow for deployment Updated GitHub Actions workflow to use v4 of the peaceiris/actions-gh-pages action and added permissions for write access to contents. --- .github/workflows/cd.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f33813f..36a095a 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -12,6 +12,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +permissions: + contents: write + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" @@ -53,9 +56,9 @@ jobs: echo Build created successfully! - name: Deploy latest build - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: - personal_token: ${{ secrets.PERSONAL_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: master-build publish_dir: ./build From 56942d3ceccf73c42bed84a5eacf388f91cc52c3 Mon Sep 17 00:00:00 2001 From: dwshetty <32707268+dwshetty@users.noreply.github.com> Date: Sat, 30 May 2026 21:46:42 +0530 Subject: [PATCH 2/2] Remove write permissions from cd.yml Removed write permission for contents in workflow. --- .github/workflows/cd.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 36a095a..bff5ee8 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -12,9 +12,6 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -permissions: - contents: write - # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build"