Skip to content

fix(ci): allow demo deploy to update gh-pages - #134

Merged
vitormattos merged 1 commit into
mainfrom
fix/demo-deploy-permissions
Sep 28, 2026
Merged

vitormattos merged 1 commit into
mainfrom
fix/demo-deploy-permissions

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Summary

Grant the demo deployment workflow write access to repository contents.

The current workflow builds the demo successfully, but the deploy step fails when JamesIves/github-pages-deploy-action@v4 attempts to push to gh-pages.

The failing run reports:

GITHUB_TOKEN Permissions
Contents: read

and then:

remote: Permission to LibreSign/pdf-elements.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/LibreSign/pdf-elements.git/': The requested URL returned error: 403

Change

Add:

permissions:
  contents: write

This keeps the existing deployment approach and grants only the permission required for the workflow to update the gh-pages branch.

@vitormattos
vitormattos requested a review from a team as a code owner September 28, 2026 04:17
@vitormattos
vitormattos merged commit 155d9b9 into main Sep 28, 2026
5 of 6 checks passed
@vitormattos
vitormattos deleted the fix/demo-deploy-permissions branch September 28, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant