Skip to content

Fix Pages deploy workflow authentication by granting OIDC token permission#1

Merged
midhunmanesh01-code merged 1 commit into
mainfrom
copilot/fix-deploy-github-actions
Jun 15, 2026
Merged

Fix Pages deploy workflow authentication by granting OIDC token permission#1
midhunmanesh01-code merged 1 commit into
mainfrom
copilot/fix-deploy-github-actions

Conversation

Copilot AI commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

The deploy GitHub Actions job failed during actions/deploy-pages@v5 with 401 Requires authentication while creating the Pages deployment. Root cause was missing OIDC permission for the deploy job.

  • Root cause

    • deploy-pages requires an OIDC token to create the Pages deployment.
    • Workflow permissions included pages: write but did not grant id-token: write for the deploy path.
  • Workflow change

    • Added explicit job/workflow permissions for Pages deployment:
      • pages: write
      • id-token: write
    • Kept permissions scoped to deployment needs only.
  • Resulting behavior

    • actions/deploy-pages@v5 can mint the OIDC token and authenticate deployment creation instead of failing with 401.
permissions:
  contents: read
  pages: write
  id-token: write

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Fix Pages deploy workflow authentication by granting OIDC token permission Jun 15, 2026
@midhunmanesh01-code midhunmanesh01-code marked this pull request as ready for review June 15, 2026 16:21
Copilot AI review requested due to automatic review settings June 15, 2026 16:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@midhunmanesh01-code midhunmanesh01-code merged commit 3679501 into main Jun 15, 2026
1 check passed
@midhunmanesh01-code midhunmanesh01-code deleted the copilot/fix-deploy-github-actions branch July 9, 2026 16:37
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.

3 participants