Skip to content

Fix workflow dispatch permission error in deploy-site job#6

Merged
brunoborges merged 2 commits intomainfrom
copilot/fix-github-actions-workflow-again
Jan 29, 2026
Merged

Fix workflow dispatch permission error in deploy-site job#6
brunoborges merged 2 commits intomainfrom
copilot/fix-github-actions-workflow-again

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

The deploy-site job in publish-maven.yml was failing with HTTP 403 when triggering the documentation deployment workflow.

Changes

  • Added actions: write permission to deploy-site job to enable workflow dispatch
deploy-site:
    name: Deploy Documentation
    needs: [publish-maven, github-release]
    runs-on: ubuntu-latest
    permissions:
        actions: write
        contents: read
    steps:
        - name: Trigger site deployment
          run: |
              gh workflow run deploy-site.yml \
                --repo ${{ github.repository }} \
                -f version="${{ needs.publish-maven.outputs.version }}" \
                -f publish_as_latest=true

The workflow-level permissions (contents: write, id-token: write) were insufficient for jobs that trigger other workflows via GitHub API.

Original prompt

Fix the failing GitHub Actions workflow Deploy Documentation
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 61919103232
Job URL: https://github.com/copilot-community-sdk/copilot-sdk-java/actions/runs/21492635999/job/61919103232


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow for documentation deployment Fix workflow dispatch permission error in deploy-site job Jan 29, 2026
Copilot AI requested a review from brunoborges January 29, 2026 20:01
@brunoborges brunoborges marked this pull request as ready for review January 29, 2026 20:07
@brunoborges brunoborges merged commit 631aade into main Jan 29, 2026
1 check passed
@brunoborges brunoborges deleted the copilot/fix-github-actions-workflow-again branch January 29, 2026 20:15
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