Skip to content

Fix release plugin version bump blocked by main ruleset - #40

Merged
laurentgo merged 2 commits into
dremio:mainfrom
laurentgo:fix/release-plugin-version-pr
Nov 19, 2026
Merged

laurentgo merged 2 commits into
dremio:mainfrom
laurentgo:fix/release-plugin-version-pr

Conversation

@laurentgo

@laurentgo laurentgo commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The v2.1.3 release run failed in update-plugin-version: it pushed straight to main with GITHUB_TOKEN, and the "Lock main" ruleset rejects that (GH013).

Changes

  • release.yml: update-plugin-version now runs in the pypi environment and creates a short-lived dremio-release-bot App token, limited to dremio/cli with contents: write. It pushes the bump to main with that token. The job's own GITHUB_TOKEN gets no permissions. create-github-app-token is pinned to a commit SHA.
  • plugin.json: bumped to 2.1.3 to match the release whose bump failed.

Required settings (before the next release)

  • Install dremio-release-bot on dremio/cli
  • Generate a dedicated App private key and store it as DREMIO_RELEASE_BOT_PRIVATE_KEY in the pypi environment, not as a repo or org secret
  • pypi environment: restrict deployments to tags matching v*
  • Tag ruleset: restrict who can create, update or delete v* tags
  • "Lock main" ruleset: add dremio-release-bot as a bypass actor (Always)

The environment and tag restrictions also close an existing gap. Today any branch can deploy to pypi, and so can use the PyPI trusted publisher.

🤖 Generated with Claude Code

main is protected by a ruleset requiring PRs, status checks and review, so
the release job's direct push to main was rejected (GH013). The
update-plugin-version job now pushes a release/plugin-version-<ver> branch,
opens a PR, and dispatches CI on it (GITHUB_TOKEN events don't trigger
pull_request workflows), so the required checks get reported.

Also bump plugin.json to 2.1.3 to match the v2.1.3 release whose bump failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T23:44:39.169480Z 235da3b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 235da3bad0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/release.yml Resolved
Replace the PR + CI-dispatch flow with a direct push to main using a
short-lived dremio-release-bot App token, scoped to this repo and
contents:write. The App is the "Lock main" ruleset bypass actor; its key is
stored in the pypi environment, restricted to v* tags. Reverts the
workflow_dispatch trigger on CI, which is no longer needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@laurentgo laurentgo changed the title Fix release plugin version bump to go through a PR Fix release plugin version bump blocked by main ruleset Nov 19, 2026
@laurentgo
laurentgo merged commit ed68441 into dremio:main Nov 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants