Skip to content

Create Release Draft and Attach Asset workflow failed during the 23.5 release #79803

Closed

Description

@bgrgicak

Description

During the 23.5 release, the Release Draft and Attach Asset workflow kept failing.

We found out that actions/create-release is deprecated and breaking the job and addressed it by merging Replace unmaintained release actions.

After the merge Create Release Draft and Attach Asset started failing on POST /repos/WordPress/gutenberg/releases with 403 responses.

We addressed it with Use GUTENBERG_TOKEN when creating the release draft, which changed the error for Create Release Draft and Attach Asset are now it's failing on POST /repos/WordPress/gutenberg/releases with 404 response.

Related issue #69054

Step-by-step reproduction instructions

  1. Trigger Build Gutenberg Plugin Zip for a stable release (Warning this will release Gutenberg)
  2. See the Release Draft and Attach Asset workflow fail

Screenshots, screen recording, code snippet

Run actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
POST /repos/WordPress/gutenberg/releases - 404 with id 9840:177750:143B7C4:49CB461:6A452A04 in 4076ms
RequestError [HttpError]: Not Found - https://docs.github.com/rest/releases/releases#create-a-release
    at fetchWrapper (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:61509:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:64949:16), <anonymous>:5:17)
Error: Unhandled error: HttpError: Not Found - https://docs.github.com/rest/releases/releases#create-a-release
    at async main (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:65100:20) {
  status: 404,
  request: {
    method: 'POST',
    url: 'https://api.github.com/repos/WordPress/gutenberg/releases',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'actions/github-script actions_orchestration_id/4ee1ca49-3c0f-4d6b-b6b7-ed6308d432c1.create-release.__default octokit-core.js/7.0.6 Node.js/24',
      authorization: 'token [REDACTED]',
      'content-type': 'application/json; charset=utf-8'
    },
    body: [Object: null prototype] {
      tag_name: 'v23.5.0',
      name: '23.5.0',
      target_commitish: 'release/23.5',
      draft: true,
      prerelease: false,
      body: '\n' +
        '\n' +
        '## Changelog\n' +
        '\n' +
        '### Enhancements\n' +
        '\n' +
        '#### Post Editor\n' +
        '- Integrate Resizable Editor with Device Preview and add Responsive editing. ([75121](https://github.com/WordPress/gutenberg/pull/75121))\n' +
        '\n' +
        '\n' +
        '### Bug Fixes\n' +
        '\n' +
        '- Paste: Move spaces out of inline formatting elements. ([79637](https://github.com/WordPress/gutenberg/pull/79637))\n' +
        '\n' +
        '#### Site Editor\n' +
        '- Theme: Revert ThemeProvider stable API. ([79594](https://github.com/WordPress/gutenberg/pull/79594))\n' +
        '\n' +
        '\n' +
        '### Code Quality\n' +
        '\n' +
        '#### Site Editor\n' +
        '- Theme: Restore public ThemeProvider export. ([79620](https://github.com/WordPress/gutenberg/pull/79620))\n' +
        '\n' +
        '\n' +
        '### Tools\n' +
        '\n' +
        '#### Build Tooling\n' +
        '- Build: Replace unmaintained release actions. ([78258](https://github.com/WordPress/gutenberg/pull/78258))\n' +
        '- Build: Use GUTENBERG_TOKEN when creating the release draft. ([79747](https://github.com/WordPress/gutenberg/pull/79747))\n' +
        '- Revert "Bump plugin version to 23.5.0". ([79744](https://github.com/WordPress/gutenberg/pull/79744))\n' +
        '- Revert "Bump plugin version to 23.5.0". ([79750](https://github.com/WordPress/gutenberg/pull/79750))\n' +
        '\n' +
        '\n' +
        '## First-time contributors\n' +
        '\n' +
        'The following PRs were merged by first-time contributors:\n' +
        '\n' +
        '- @slackticus: Build: Replace unmaintained release actions. ([78258](https://github.com/WordPress/gutenberg/pull/78258))\n' +
        '\n' +
        '\n' +
        '## Contributors\n' +
        '\n' +
        'The following contributors merged PRs in this release:\n' +
        '\n' +
        '@ciampo @ellatrix @slackticus @t-hamano @tyxla\n' +
        '= 23.5.0-rc.3 =\n' +
        '\n' +
        '## Changelog\n' +
        '\n' +
        '### Bug Fixes\n' +
        '\n' +
        '#### Site Editor\n' +
        '- Theme: Revert ThemeProvider stable API. ([79594](https://github.com/WordPress/gutenberg/pull/79594))\n' +
        '\n' +
        '\n' +
        '### Code Quality\n' +
        '\n' +
        '#### Site Editor\n' +
        '- Theme: Restore public ThemeProvider export. ([79620](https://github.com/WordPress/gutenberg/pull/79620))\n' +
        '\n' +
        '\n' +
        '\n' +
        '\n' +
        '## Contributors\n' +
        '\n' +
        'The following contributors merged PRs in this release:\n' +
        '\n' +
        '@ciampo \n' +
        '\n' +
        '\n' +
        '= 23.5.0-rc.2 =\n' +
        '\n' +
        '\n' +
        '## Changelog\n' +
        '\n' +
        '### Enhancements\n' +
        '\n' +
        '#### Post Editor\n' +
        '- Integrate Resizable Editor with Device Preview and add Responsive editing. ([75121](https://github.com/WordPress/gutenberg/pull/75121))\n' +
        '\n' +
        '## Contributors\n' +
        '\n' +
        'The following contributors merged PRs in this release:\n' +
        '\n' +
        '@t-hamano\n' +
        '\n' +
        '\n' +
        '= 23.5.0-rc.1 =\n' +
        '\n' +
        '## Changelog\n' +
        '\n' +
        '### Enhancements\n' +
        '\n' +
        '- Style Engine: Export public TypeScript types. ([79079](https://github.com/WordPress/gutenberg/pull/79079))\n' +
        '- Widget Primitives: Decouple discovery from a hardcoded endpoint. ([79322](https://github.com/WordPress/gutenberg/pull/79322))\n' +
        '- Widget Primitives: Make `@types/react` an optional peer dependency. ([79272](https://github.com/WordPress/gutenberg/pull/79272))\n' +
        '\n' +
        '#### Components\n' +
        '- Add corner radius presets to ThemeProvider. ([78816](https://github.com/WordPress/gutenberg/pull/78816))\n' +
        '- Autocomplete: Add Group and GroupLabel primitives. ([78901](https://github.com/WordPress/gutenberg/pull/78901))\n' +
        '- Base Styles: Add wpds-var Sass helper for design token fallbacks. ([78698](https://github.com/WordPress/gutenberg/pull/78698))\n' +
        '- BaseControl: add text-wrap: Pretty. ([79112](https://github.com/WordPress/gutenberg/pull/79112))\n' +
        '- BoxControl: Hard deprecate 40px default size. ([79419](https://github.com/WordPress/gutenberg/pull/79419))\n' +
        '- Components, DataViews: Adopt --wpds-dimension-size-* tokens. ([79093](https://github.com/WordPress/gutenberg/pull/79093))\n' +
        '- ESLint, UI, Components: Mark `Tooltip` from `@wordpress/ui` as recommended. ([78693](https://github.com/WordPress/gutenberg/pull/78693))\n' +
        '- Popover: Add open/close motion and fix close re-anchor. ([78885](https://github.com/WordPress/gutenberg/pull/78885))\n' +
        '- Theme: Add Figma scopes to element size tokens. ([79032](https://github.com/WordPress/gutenberg/pull/79032))\n' +
        '- Theme: Add disabled variants for brand and error interactive color tokens. ([79124](https://github.com/WordPress/gutenberg/pull/79124))\n' +
        '- Theme: Add stroke-surface tokens for the caution tone. ([79198](https://github.com/WordPress/gutenberg/pull/79198))\n' +
        '- Theme: Apply ThemeProvider styles inline (I2). ([78678](https://github.com/WordPress/gutenberg/pull/78678))\n' +
        '- Theme: Differentiate `--wpds-color-fg-interactive-{brand,error}-active` vs resting state tokens. ([79151](https://github.com/WordPress/gutenberg/pull/79151))\n' +
        '- Theme: Enforce sRGB seed-color input contract for ThemeProvider. ([79148](https://github.com/WordPress/gutenberg/pull/79148))\n' +
        '- Theme: Provide design-system token defaults without a runtime `<ThemeProvider>`. ([78664](https://github.com/WordPress/gutenberg/pull/78664))\n' +
        '- Theme: Skip serializing `data-wpds-root-provider="false"` on non-root providers. ([79253](https://github.com/WordPress/gutenberg/pull/79253))\n' +
        '- Theme: forward ThemeProvider cornerRadius preset to :Root for root providers. ([79153](https://github.com/WordPress/gutenberg/pull/79153))\n' +
        '- UI Field.Description: add `text-wrap: Pretty`. ([79143](https://github.com/WordPress/gutenberg/pull/79143))\n' +
        '- UI: Disable instant overlay popup transitions. ([79432](https://github.com/WordPress/gutenberg/pull/79432))\n' +
        '- UI: Simplify focus ring styles. ([78823](https://github.com/WordPress/gutenberg/pull/78823))\n' +
        '- UI: Use isomorphic layout effects for SSR. ([79458](https://github.com/WordPress/gutenberg/pull/79458))\n' +
        '- Update `@ariakit/react` to 0.4.29. ([79055](https://github.com/WordPress/gutenberg/pull/79055))\n' +
        '- [DataViewsPicker]: `DataViewsPicker.BulkActionToolbar` now renders only the bulk-selection info and action buttons. ([79180](https://github.com/WordPress/gutenberg/pull/79180))\n' +
        '- theme: Rename `bg`/`fg` design token groups to `background`/`foreground`. ([79098](https://github.com/WordPress/gutenberg/pull/79098))\n' +
        '\n' +
        '#### Block Library\n' +
        '- Add support for aspect ratio and related controls in viewport states. ([78795](https://github.com/WordPress/gutenberg/pull/78795))\n' +
        '- Audio: Apply `inert` directly instead of wrapping in `Disabled`. ([79423](https://github.com/WordPress/gutenberg/pull/79423))\n' +
        '- Classic Block: Port PHPUnit coverage for hiding it from the inserter. ([79434](https://github.com/WordPress/gutenberg/pull/79434))\n' +
        '- Cover block: Add media editor modal. ([79258](https://github.com/WordPress/gutenberg/pull/79258))\n' +
        '- File Block: Combine audio/video/image to file transforms. ([79242](https://github.com/WordPress/gutenberg/pull/79242))\n' +
        '- File Block: Replace on-mount downloadButtonText effect with a default variation. ([79236](https://github.com/WordPress/gutenberg/pull/79236))\n' +
        '- Icon Block: Add flip and rotate transformation controls. ([77017](https://github.com/WordPress/gutenberg/pull/77017))\n' +
        '- Icon block: Default to core/info via block.json instead of an insert-time effect. ([79212](https://github.com/WordPress/gutenberg/pull/79212))\n' +
        '- Icon block: Move flip controls to toolbar group. ([79192](https://github.com/WordPress/gutenberg/pull/79192))\n' +
        '- Icons block: Insert an icon by default. ([79111](https://github.com/WordPress/gutenberg/pull/79111))\n' +
        '- Math format: Seed LaTeX input from the current selection. ([79052](https://github.com/WordPress/gutenberg/pull/79052))\n' +
        '- Pullquote: Migrate to text-align block support. ([79225](https://github.com/WordPress/gutenberg/pull/79225))\n' +
        '- Remove orphaned `convertToListItems` util. ([79400](https://github.com/WordPress/gutenberg/pull/79400))\n' +
        '- Search block: Add opt-in support for the semantic <search> element. ([78485](https://github.com/WordPress/gutenberg/pull/78485))\n' +
        '- Tabs: Simplify layout and prune redundant block supports. ([77646](https://github.com/WordPress/gutenberg/pull/77646))\n' +
        '- Try: Remove Tab (Tab list item) block. ([77439](https://github.com/WordPress/gutenberg/pull/77439))\n' +
        '- Video: Apply `inert` directly instead of wrapping in `Disabled`. ([79371](https://github.com/WordPress/gutenberg/pull/79371))\n' +
        '\n' +
        '#### Post Editor\n' +
        '- Block Editor: Allow overriding `disableContentOnlyForTemplateParts` setting. ([79191](https://github.com/WordPress/gutenberg/pull/79191))\n' +
        '- Editor: Hide cmd palette shortcut in document bar when admin bar is shown. ([79060](https://github.com/WordPress/gutenberg/pull/79060))\n' +
        '- Feature: Need to add “Show More” / “Show Less” toggle in Note. ([77446](https://github.com/WordPress/gutenberg/pull/77446))\n' +
        "- Notes: Simplify 'Show more/less' collapse logic. ([79261](https://github.com/WordPress/gutenberg/pull/79261))\n" +
        '- Rename `Toolbar in editor` experiment to match iteration issue. ([79074](https://github.com/WordPress/gutenberg/pull/79074))\n' +
        '- Revisions screen with picker-activity layout. ([77333](https://github.com/WordPress/gutenberg/pull/77333))\n' +
        '- Style states: Use symbols for property keys to avoid clashes. ([79210](https://github.com/WordPress/gutenberg/pull/79210))\n' +
        '\n' +
        '#### Site Editor\n' +
        '- Add xl border radius token for page shell surfaces. ([78913](https://github.com/WordPress/gutenberg/pull/78913))\n' +
        "- Change 'Identity' nav item position. ([79292](https://github.com/WordPress/gutenberg/pull/79292))\n" +
        '- Handle `aria-current` natively in `SidebarNavigationItem`. ([79305](https://github.com/WordPress/gutenberg/pull/79305))\n' +
        '- Introduce isHidden prop for SidebarNavigationItem. ([79352](https://github.com/WordPress/gutenberg/pull/79352))\n' +
        '- Omnipresent toolbar: Show site icon instead of dashicon if set. ([79049](https://github.com/WordPress/gutenberg/pull/79049))\n' +
        '- Update spelling within the welcome tour. ([53028](https://github.com/WordPress/gutenberg/pull/53028))\n' +
        '\n' +
        '#### Block Editor\n' +
        '- Add flex vertical alignment tool to block inspector layout panel. ([79426](https://github.com/WordPress/gutenberg/pull/79426))\n' +
        '- Correct behaviour of flex child fixed width and introduce max width option. ([79073](https://github.com/WordPress/gutenberg/pull/79073))\n' +
        '- Global Styles: Add textShadow style support. ([73320](https://github.com/WordPress/gutenberg/pull/73320))\n' +
        '- List View block support: Hide list tab when allowedBlocks is empty, with no children. ([78932](https://github.com/WordPress/gutenberg/pull/78932))\n' +
        '- Pattern editing: Show root block identity when editing pattern sections. ([79417](https://github.com/WordPress/gutenberg/pull/79417))\n' +
        '\n' +
        '#### Media\n' +
        '- Media Editor Modal: Add a loading and simple error state. ([79101](https://github.com/WordPress/gutenberg/pull/79101))\n' +
        '- Media Editor: Magnify the crop'... 21945 more characters
    },
    request: {
      agent: [Agent],
      fetch: [Function: proxyFetch],
      hook: [Function: bound bound register]
    }
  },
  response: {
    url: 'https://api.github.com/repos/WordPress/gutenberg/releases',
    status: 404,
    headers: {
      'access-control-allow-origin': '*',
      'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset, Warning',
      'content-encoding': 'gzip',
      'content-security-policy': "default-src 'none'",
      'content-type': 'application/json; charset=utf-8',
      date: 'Wed, 01 Jul 2026 14:54:00 GMT',
      'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
      server: 'github.com',
      'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
      'transfer-encoding': 'chunked',
      vary: 'Accept-Encoding, Accept, X-Requested-With',
      'x-accepted-oauth-scopes': 'repo',
      'x-content-type-options': 'nosniff',
      'x-frame-options': 'deny',
      'x-github-api-version-selected': '2022-11-28',
      'x-github-media-type': 'github.v3; format=json',
      'x-github-request-id': '9840:177750:143B7C4:49CB461:6A452A04',
      'x-oauth-scopes': 'public_repo',
      'x-ratelimit-limit': '5000',
      'x-ratelimit-remaining': '4998',
      'x-ratelimit-reset': '1782921164',
      'x-ratelimit-resource': 'core',
      'x-ratelimit-used': '2',
      'x-xss-protection': '0'
    },
    data: {
      message: 'Not Found',
      documentation_url: 'https://docs.github.com/rest/releases/releases#create-a-release',
      status: '404'
    }
  },
  [cause]: undefined
}

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. added
    [Type] Bug
    on Jul 2, 2026
  2. added
    Gutenberg Plugin
    on Jul 2, 2026
  3. ciampo commented on Jul 4, 2026

    @ciampo
    Contributor

    #79858 adds earlier token preflight and safer release guards, but it does not itself fix the token/permission configuration that caused release creation to fail.

  4. added
    [Status] In Progress
    on Jul 6, 2026
  5. desrosj commented on Jul 6, 2026

    @desrosj
    Member

    I've opened #79912 which should address the root cause of the problem based on my findings. I also gave a review of #79858, but I think some parts of that PR are unnecessary given the shift to generating the token using a GitHub application on demand using a private key configured as an environment secret.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Gutenberg Plugin[Status] In Progress[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions