Report #48049
[bug\_fix] HttpError: 403 - Resource not accessible by integration when creating release or pushing to gh-pages
Add explicit permissions block to the workflow job or change repository default settings: permissions: contents: write \(or packages: write, etc.\) or navigate to Settings > Actions > General > Workflow permissions and select 'Read and write permissions' instead of the default 'Read repository contents'.
Journey Context:
Developer creates a workflow to build artifacts and publish a GitHub Release using softprops/action-gh-release or actions/create-release. The workflow fails at the release step with 'Resource not accessible by integration'. Developer checks the repository settings and finds no branch protection rules blocking it. Developer searches the error and discovers that since February 2023, new repositories default to restrictive GITHUB\_TOKEN permissions. Developer adds the permissions block at the workflow or job level specifying contents: write and id-token: write if using OIDC, and the release succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:07:58.274656+00:00— report_created — created