Skip to content

fix(ci): mint release-workflow writes with the mellea-auto-release App token - #1376

Merged
ajbozarth merged 1 commit into
generative-computing:mainfrom
ajbozarth:fix/release-workflows-app-token
Jul 9, 2026
Merged

ajbozarth merged 1 commit into
generative-computing:mainfrom
ajbozarth:fix/release-workflows-app-token

Conversation

@ajbozarth

Copy link
Copy Markdown
Member

Issue

Fixes #

Description

The release-branch workflows authored their writes with the default
GITHUB_TOKEN. That fails in two ways this org enforces:

  • Pushes to protected branches — cut-release-branch and
    publish-dev-from-main push to main, and publish-release pushes to
    release/**. github-actions[bot] cannot be added as a branch-protection
    bypass actor, so these pushes are rejected.
  • Opening the changelog-sync PR — the org blocks Actions from creating
    PRs under GITHUB_TOKEN.

The write jobs now mint a token from the mellea-auto-release GitHub App
(vars.CI_APP_ID / secrets.CI_PRIVATE_KEY), which is a bypass actor on the
protected rulesets — the same app mellea-contribs already uses. Read-only
jobs (guard, code-checks, pre-release-check) stay on GITHUB_TOKEN.
RELEASE.md is updated to match.

Requires (repo settings, no code): the mellea-auto-release app installed with
main + release/** bypass, and CI_APP_ID / CI_PRIVATE_KEY available.

Testing

  • Tests added to the respective file if code was changed
  • New code has 100% coverage if code was added
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

Attribution

  • AI coding assistants used

Adding a new component, requirement, sampling strategy, or tool?

  • Component
  • Requirement
  • Sampling Strategy
  • Tool

…p token

The release workflows pushed to protected main and release/** and opened
the changelog-sync PR with the default GITHUB_TOKEN, which github-actions[bot]
cannot be granted branch-protection bypass for and which the org blocks from
creating PRs. Mint a token from the mellea-auto-release App in the write jobs
of cut-release-branch, publish-release, and publish-dev-from-main; read-only
jobs stay on GITHUB_TOKEN. Update RELEASE.md to match.

Assisted-by: Claude Code
Signed-off-by: Alex Bozarth <[email protected]>
@ajbozarth
ajbozarth requested a review from a team as a code owner July 9, 2026 21:40
@github-actions github-actions Bot added the bug Something isn't working label Jul 9, 2026
@ajbozarth ajbozarth self-assigned this Jul 9, 2026
@ajbozarth
ajbozarth requested a review from avinash2692 July 9, 2026 21:43
@ajbozarth
ajbozarth enabled auto-merge July 9, 2026 21:57
@ajbozarth
ajbozarth added this pull request to the merge queue Jul 9, 2026
Merged via the queue into generative-computing:main with commit fd966b1 Jul 9, 2026
8 checks passed
@ajbozarth
ajbozarth deleted the fix/release-workflows-app-token branch July 9, 2026 22:27
ajbozarth added a commit to ajbozarth/mellea that referenced this pull request Nov 10, 2026
The snapshot-docs job built each release's versioned docs from main,
so they included unreleased changes. Build them from the release tag
and land them on main through a sync PR instead.

Also remove release triggers and dispatches made redundant by the
app token switch in generative-computing#1376, and resolve the zizmor findings in generative-computing#1534.

Assisted-by: Claude Code
Signed-off-by: Alex Bozarth <[email protected]>
ajbozarth added a commit to ajbozarth/mellea that referenced this pull request Nov 10, 2026
…#1802)

* fix(ci): snapshot release docs from release tag

The snapshot-docs job built each release's versioned docs from main,
so they included unreleased changes. Build them from the release tag
and land them on main through a sync PR instead.

Also remove release triggers and dispatches made redundant by the
app token switch in generative-computing#1376, and resolve the zizmor findings in generative-computing#1534.

Assisted-by: Claude Code
Signed-off-by: Alex Bozarth <[email protected]>

* docs: explain how docs fixes reach release snapshots

Snapshots are now built from the release tag, so a fix to a published
snapshot must be made on main to deploy and also landed on the release
branch to carry into the next patch's snapshot.

Assisted-by: Claude Code
Signed-off-by: Alex Bozarth <[email protected]>

* fix(ci): address review feedback on release scripts

Assisted-by: Claude Code
Signed-off-by: Alex Bozarth <[email protected]>

---------

Signed-off-by: Alex Bozarth <[email protected]>
ajbozarth added a commit that referenced this pull request Nov 11, 2026
* fix(ci): snapshot release docs from release tag

The snapshot-docs job built each release's versioned docs from main,
so they included unreleased changes. Build them from the release tag
and land them on main through a sync PR instead.

Also remove release triggers and dispatches made redundant by the
app token switch in #1376, and resolve the zizmor findings in #1534.

Assisted-by: Claude Code


* docs: explain how docs fixes reach release snapshots

Snapshots are now built from the release tag, so a fix to a published
snapshot must be made on main to deploy and also landed on the release
branch to carry into the next patch's snapshot.

Assisted-by: Claude Code


* fix(ci): address review feedback on release scripts

Assisted-by: Claude Code


---------

Signed-off-by: Alex Bozarth <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants