Skip to content

fix(ci): release upload fails on immutable releases #7328

Done

Description

@dan-petty

Problem

The Release workflow publishes the GitHub release first and then uploads the wheel, the sdist and SHA256SUMS.txt (job Upload Release Assets of .github/workflows/release.yml). The repository now has immutable releases, and GitHub refuses a file for a published immutable release. Each release run fails, and the release holds no package file.

Evidence

2026-11-26: release v0.223.0 is immutable and has 0 assets. The upload step ended with HTTP 422: Cannot upload assets to an immutable release. v0.222.0, published the same day before the setting was on, has 3 assets. Row 3 of devops repos onboard turns the setting on. The images of v0.223.0 were built, verified and tagged.

Done when

  • The release is created as a draft, takes its files and is then published, and its tag exists for the jobs that need it. Check the options of release-please for a draft release first.
  • The next release run succeeds and the release holds the three files.

Note

v0.223.0 cannot take files any more. Immutable releases stay on: turning them off lowers a security setting, which only the owner can allow.

Alternatives check of 2026-11-26: in-use.
The item already names this tool.
Tool: googleapis/release-please (https://github.com/googleapis/release-please), Apache-2.0, last activity 2026-11-23, maintained.
Reason: Searches returned no relevant pages, but the fact reads show release-please and its action are live: release-please's draft option creates the release as a draft and keeps the tag, yet uploading the files and publishing the draft stay in the workflow.

Covers:

  • Draft release created by config, so files land before publish
  • Tag created with the draft through force-tag-creation
  • Version bump and release notes stay as today

Lacks:

  • No asset upload for wheel, sdist and SHA256SUMS
  • No step that publishes the draft after the upload
  • Draft is a manifest config option, not an action input

Activity

  1. added
    type/bug
    scope/ci
    source/agent
    on Nov 26, 2026
  2. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor
  3. added
    status/new
    effort/low
    value/high
    priority/p0-critical
    on Nov 26, 2026
  4. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • release-please draft release option upload assets then publish, results: 5
    • release-please-action force-tag-creation draft input, results: 5
    • googleapis release-please-action GitHub action inputs draft, results: 5
    • release-please manifest config "draft" release-please-config.json, results: 5
    • release-please, results: 5
    • release please draft release immutable release assets upload 422, results: 5
    • "release-please" github release draft option configuration, results: 5
    • manifest-releaser docs force-tag-creation draft release-please github, results: 5
    • github immutable release cannot upload assets HTTP 422 draft release workaround, results: 5
    • softprops action-gh-release create draft release upload assets then publish, results: 5

    Sources:

  5. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 26, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 26, 2026
  7. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-26 21:04 UTC

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p0-criticalscope/cisource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions