Skip to content

Fix PDK Update workflow: add workflows: write permission - #1307

Closed
david22swan with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-pdk-update-failure
Closed

Fix PDK Update workflow: add workflows: write permission#1307
david22swan with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-pdk-update-failure

Conversation

Copilot AI commented Aug 3, 2026

Copy link
Copy Markdown

PDK manages .github/workflows/nightly.yml (via .sync.yml unmanaged: false), so pdk update modifies it. GitHub rejects pushes containing workflow file changes unless the token has workflows: write — causing the weekly PDK Update job to fail at the push step.

Summary

Add workflows: write to the permissions block in .github/workflows/pdk_update.yml:

permissions:
  contents: write
  pull-requests: write
  workflows: write   # required: pdk update modifies .github/workflows/nightly.yml

Additional Context

  • Root cause and the steps to reproduce. (If applicable)
    • pdk update --force modifies nightly.ymlpeter-evans/create-pull-request tries to push a branch with that change → GitHub rejects with: refusing to allow a GitHub App to create or update workflow ... without workflows permission
  • Thought process behind the implementation.
    • Minimal permission addition; no logic changes needed.

Related Issues (if any)

N/A

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

Copilot AI changed the title [WIP] Fix failing GitHub Actions job for PDK Update Fix PDK Update workflow: add workflows: write permission Aug 3, 2026
Copilot AI requested a review from david22swan August 3, 2026 16:47
@david22swan david22swan closed this Aug 3, 2026
@david22swan
david22swan deleted the copilot/fix-pdk-update-failure branch August 3, 2026 16:53
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