Skip to content

fix(ci): grant contents write permission to gh-pages deploy#17

Merged
ppettitau merged 1 commit into
masterfrom
ERP-4896_Fix_Deploy_Permissions
Jun 16, 2026
Merged

fix(ci): grant contents write permission to gh-pages deploy#17
ppettitau merged 1 commit into
masterfrom
ERP-4896_Fix_Deploy_Permissions

Conversation

@ppettitau

Copy link
Copy Markdown

Problem

The deploy job failed after merging the Angular 22 upgrade with:

remote: Permission to eresearchqut/angular-password-strength-meter.git denied to github-actions[bot].
... error: 403

Cause

The default GITHUB_TOKEN is read-only, so JamesIves/github-pages-deploy-action cannot push to the gh-pages branch.

Fix

Grant contents: write permission to the deploy job.

Note: this only works if the repo's Settings → Actions → General → Workflow permissions allows workflows to request write (i.e. not forced read-only). If the deploy still 403s, that setting must be enabled.

The GitHub Pages deploy job failed with a 403 because the default
GITHUB_TOKEN is read-only. Grant `contents: write` so the action can
push to the gh-pages branch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ppettitau ppettitau merged commit 7bfd4cf into master Jun 16, 2026
3 checks passed
@ppettitau ppettitau deleted the ERP-4896_Fix_Deploy_Permissions branch June 16, 2026 21:39
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