Skip to content

Fix Pages deploy workflow failure caused by unauthorized site enablement - #2

Merged
ramkumarrammohan merged 1 commit into
masterfrom
copilot/fix-build-and-deploy-failure
Jul 6, 2026
Merged

Fix Pages deploy workflow failure caused by unauthorized site enablement#2
ramkumarrammohan merged 1 commit into
masterfrom
copilot/fix-build-and-deploy-failure

Conversation

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

build-and-deploy was failing in actions/configure-pages with Resource not accessible by integration before deployment could proceed. The workflow was attempting to auto-enable/create the Pages site at runtime, which is not permitted with the run token in this repository context.

  • Root cause

    • actions/configure-pages@v4 was configured with enablement: true, triggering a Pages site creation/enablement API call.
    • That API call failed due to integration permissions, aborting the job.
  • Workflow change

    • Removed the with.enablement: true input from the Setup Pages step in .github/workflows/deploy.yml.
    • Kept configure-pages, artifact upload, and deploy steps intact so deployment uses existing Pages configuration without attempting privileged enablement.
  • Before/after (relevant snippet)

- name: Setup Pages
  uses: actions/configure-pages@v4
  with:
    enablement: true
- name: Setup Pages
  uses: actions/configure-pages@v4

Copilot AI changed the title Fix build-and-deploy GitHub Pages workflow failure Fix Pages deploy workflow failure caused by unauthorized site enablement Jul 6, 2026
Copilot AI requested a review from ramkumarrammohan July 6, 2026 07:42
@ramkumarrammohan
ramkumarrammohan marked this pull request as ready for review July 6, 2026 07:45
@ramkumarrammohan
ramkumarrammohan merged commit 928e52f into master Jul 6, 2026
1 check passed
@ramkumarrammohan
ramkumarrammohan deleted the copilot/fix-build-and-deploy-failure branch July 6, 2026 07:45
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.

2 participants