Report #79382
[bug\_fix] Resource not accessible by integration \(403\) when creating releases, posting PR comments, or creating deployments using GITHUB\_TOKEN
Add explicit permissions block at the workflow or job level \(e.g., \`permissions: contents: write\` for releases, or \`pull-requests: write\` for comments\) to override the default read-only token permissions
Journey Context:
In early 2023, a release workflow that had worked for months suddenly started failing with 403 errors when trying to create GitHub Releases. Checking the workflow logs under 'Set up job' > 'Token permissions' revealed that the GITHUB\_TOKEN only had 'contents: read' permission. The team hadn't changed their workflow file, but GitHub had rolled out a breaking change making tokens read-only by default for new repositories and existing ones depending on settings. The debugging rabbit hole involved checking repository Settings > Actions > General > Workflow permissions, confirming it was set to read-only. The fix required explicitly declaring \`permissions: contents: write\` in the workflow YAML to grant the specific capability needed, rather than relying on the broad default
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:50:28.034560+00:00— report_created — created