Skip to content

fix: add explicit GitHub Actions deploy workflow with id-token:write permission - #7

Merged
nikolaimak merged 2 commits into
mainfrom
copilot/fix-deploy-job
Jul 5, 2026
Merged

fix: add explicit GitHub Actions deploy workflow with id-token:write permission#7
nikolaimak merged 2 commits into
mainfrom
copilot/fix-deploy-job

Conversation

Copilot AI commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

The pages-build-deployment dynamic workflow was failing with Deployment failed, try again later. because the implicit "Deploy from branch" mechanism never grants id-token: write, which actions/deploy-pages@v5 requires for OIDC authentication against the Pages API.

Changes

  • .github/workflows/deploy.yml — new explicit Pages deployment workflow replacing the implicit branch-deploy mechanism:
    • Grants id-token: write (the missing permission causing the failure), pages: write, contents: read
    • concurrency: group: pages, cancel-in-progress: false to prevent overlapping deployments
    • Standard pipeline: checkoutconfigure-pages@v5upload-pages-artifact@v3 (path: .) → deploy-pages@v5
    • Triggers on push to main and supports workflow_dispatch

…permission

The pages-build-deployment dynamic workflow was failing with
"Deployment failed, try again later." because the implicit deploy-from-branch
approach lacked the explicit id-token:write OIDC permission required by
actions/deploy-pages@v5.

This adds .github/workflows/deploy.yml with:
- id-token: write (required for OIDC-based Pages deployment)
- pages: write and contents: read
- Proper concurrency group to prevent overlapping deployments
- Triggers on push to main and supports workflow_dispatch
Copilot AI changed the title [WIP] Fix failing GitHub Actions job "deploy" fix: add explicit GitHub Actions deploy workflow with id-token:write permission Jul 5, 2026
Copilot AI requested a review from nikolaimak July 5, 2026 20:13
@nikolaimak
nikolaimak marked this pull request as ready for review July 5, 2026 21:14
@nikolaimak
nikolaimak merged commit 37355ce into main Jul 5, 2026
1 check passed
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