Skip to content

feat(release): add shared release-pr and release-publish workflows - #20

Merged
furedea merged 10 commits into
mainfrom
feat/11-shared-release
Nov 9, 2026
Merged

furedea merged 10 commits into
mainfrom
feat/11-shared-release

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

概要

release の手順を共有 workflow 2 つ(release-pr.yml,release-publish.yml)にした.ビルドは各 repo のジョブに残し,成果物は workflow artifact で渡す.agent-harness と rater の移行は,この PR の release 後に 1 本ずつ行う(Refs #11).

計画コメント

flowchart LR
    A[push to main] --> B[release-pr.yml<br/>release PR / draft release]
    B -->|release_created, tag_name| C[caller build job<br/>upload-artifact]
    C --> D[release-publish.yml<br/>verify, attest, upload, publish]
Loading
部分 今 この PR 後
release PR と draft release 各 repo の release_please.yml release-pr.yml(App token)
証明,アップロード,公開 各 repo の release_artifacts.yml release-publish.yml
起動 tag への workflow_dispatch main への push(tag の commit と GITHUB_SHA の一致を検査)
この repo の release_please.yml 直接 release-please を実行 release-pr.yml を呼ぶ

移行 PR の前提(ユーザーの作業)

  • agent-harness と rater に variable RELEASE_APP_CLIENT_ID と secret RELEASE_APP_PRIVATE_KEY を登録済み(ユーザー確認済み)
  • この PR を merge し,release-please が切った release の SHA を移行 PR で固定する
  • 移行後に RELEASE_PLEASE_TOKEN を削除する

検証

  • actionlint:指摘なし
  • zizmor .github/workflows:指摘なし
  • pre-commit(ls-lint,commitlint):通過
  • 実際の release の動作:この PR の merge 後に,この repo の release で release-pr.yml を確認し,release-publish.yml は agent-harness の移行 PR で確認する

レビュー対応:呼び出し側の release-please config に draft: true と force-tag-creation: true が必要なこと,ルート(.)の単一 package のみ対応であること,immutable releases の設定が必要なこと,attestation に public repo(または GitHub Enterprise Cloud)が必要なことを README に明記した.tag と実行 commit がずれて draft が残る場合の復旧手順(workflow_dispatch を tag 上で実行)も README の例に追加した(未検証,agent-harness の移行 PR で確認する).

追加(ユーザー判断):release_please.yml を release-please.yml に改名し,.ls-lint.yml の workflow 名の規則を kebab-case 1 本にした(README に「workflow file names use kebab-case」を追記).artifact は flat(通常ファイルのみ,サブディレクトリと隠しファイルなし)が前提であることも README に明記した.

計画からの変更:なし.

前提と補足
  • 証明の builder identity は release-publish.yml(固定 SHA)になる.従来は各 repo の release_artifacts.yml
  • rater の cmd/rater/version.txt と tag の一致検査は repo 固有なので rater の build ジョブに残す
  • .ls-lint.yml に新しい workflow 名を追加(pre-commit が拒否したため)
  • 除外:agent-harness と rater の移行,dotfiles の templates/ 削除(Issue の残りの受け入れ条件)

🤖 Generated with Claude Code

furedea and others added 3 commits November 9, 2026 15:47
Split the release steps into release-pr.yml (release-please with the release App token)
and release-publish.yml (verify the tag, attest, upload and publish the draft).
Callers keep only their build job and pass the files as a workflow artifact.
release_please.yml now calls release-pr.yml, so this repository exercises it.

Refs #11

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 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-09T08:19:33.593343Z fa4dadc Manual request
ℹ️ 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.

Comment thread README.md
`release.yml` runs on every push to `main`, in three jobs:

1. `release-pr` (`release-pr.yml`) opens or updates the release PR. When the PR is merged it creates the tag and a
**draft** release, and outputs `release_created` and `tag_name`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: This flow needs release-please config that callers have to set themselves, and the README doesn't say so. By default release-please publishes the release right away, and GitHub doesn't create the git tag for a draft release. To get "the tag and a draft release", the caller's release-please-config.json must set "draft": true and "force-tag-creation": true.

What happens if either one is missing:

  • Without draft: true, the release is already published, so release-publish always fails at the isDraft check.
  • Without force-tag-creation: true, the tag doesn't exist. The build checkout of ref: tag_name fails, and so does gh api repos/$GH_REPO/commits/$TAG_NAME.

Please list both settings in this section, for example next to the config-file / manifest-file note.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 98d7c72: the README now states that the caller config must set "draft": true and "force-tag-creation": true, and why.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary

Blocking findings: 0 (P0: 0, P1: 0, P2: 1)

  • P2 README.md:173: the README doesn't say callers must set "draft": true and "force-tag-creation": true in their release-please config. Without them, the release is published right away (so release-publish fails the draft check), or the tag doesn't exist (so the build checkout and the tag/SHA check fail).

What I checked and found no problem with:

  • The job permissions in release-pr.yml and release-publish.yml, and the permissions the caller passes in.
  • Draft lookup with gh release view / upload.
  • Comparing the tag's SHA with GITHUB_SHA on push to main.
  • Refusing to touch a release that's already published before --clobber.
  • Publishing with make_latest=legacy.
  • The new release_please.yml caller and the .ls-lint.yml pattern.

These are workflow-only changes, so the real test is a release run, which the PR already plans after merge.

🤖 Generated with Claude Code

@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: b48d93d234

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +63 to +67
uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
with:
token: ${{ steps.app-token.outputs.token }}
config-file: ${{ inputs.config-file }}
manifest-file: ${{ inputs.manifest-file }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Require release-please to create draft releases

Callers following the documented setup can use an ordinary release-please config, where draft defaults to false; the action therefore publishes the release immediately, and release-publish.yml then always rejects it at the isDraft check before attaching artifacts. This repository's own unchanged config demonstrates that the default configuration does not satisfy the new workflow contract. Require or validate draft: true in the caller's config before exposing release_created; the release-please schema documents that releases are published by default.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 98d7c72 by documenting the requirement. Validating it in release-pr.yml is not possible: the config is the caller file and release-please owns the draft behavior. release-publish.yml already fails with a clear message at the isDraft check, and agent-harness already sets draft: true.

Comment thread README.md Outdated
Comment on lines +213 to +216
- uses: actions/checkout@<full-commit-sha> # <ref>
with:
persist-credentials: false
ref: ${{ needs.release-pr.outputs.tag_name }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Require eager tag creation for draft releases

When the caller corrects the first prerequisite by enabling draft releases, the documented build still cannot check out this ref unless the release-please config also enables force-tag-creation: by default GitHub does not create the Git tag for a draft until it is published. Consequently the checkout here fails before artifacts are built, and the publisher's gh api .../commits/$TAG_NAME check would fail as well. Require or document force-tag-creation: true alongside draft mode; the release-please CLI documentation explicitly describes this draft-tag behavior.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 98d7c72: the README requires "force-tag-creation": true next to "draft": true. agent-harness already sets both in its config.

@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary (read-only)

No blocking findings. I checked:

  • release-pr.yml: The App token is scoped to the caller repo. The job's GITHUB_TOKEN has no permissions (permissions: {}), and release-please uses only the App token. The root-level release_created / tag_name outputs are passed up correctly for a root (.) package.
  • release-publish.yml: The tag SHA is checked against GITHUB_SHA and the draft state is checked before --clobber, so assets on a published release are never deleted. gh release view/upload find draft releases by tag through gh's draft fallback. The artifact download works because a called workflow runs in the caller's run. Permissions are kept to the minimum, and make_latest=legacy avoids an older tag's run marking itself latest.
  • release_please.yml: This repo now calls the local reusable workflow, so the repo's own releases exercise it.

Two minor, non-blocking notes:

  • Removing the explicit credential check means a missing RELEASE_APP_CLIENT_ID/RELEASE_APP_PRIVATE_KEY now shows up as a less descriptive error from create-github-app-token.
  • The top-level outputs only cover a root-path package. Monorepo callers would need the <path>---prefixed outputs.

These are workflows, so there are no automated tests. The PR says end-to-end checks will happen after merge and in the agent-harness migration, which is reasonable here.

@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: 98d7c72603

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +45 to +46
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Handle path-prefixed release outputs

When the supplied manifest has a package outside the root path—or multiple packages—release-please does not populate these unprefixed outputs; it emits path-prefixed outputs such as <path>--release_created and <path>--tag_name instead, as documented in the release-please action outputs. The workflow can therefore create one or more draft releases but report an empty release_created/tag_name, causing the documented build and publish jobs to skip and leaving those releases stranded as drafts. Either explicitly restrict this reusable workflow to a single root component or provide a way to select and expose the path-prefixed outputs.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 6ea64cc by restricting the scope: the README now states that only a single package at the root path is supported, because release-pr.yml exposes only the unprefixed outputs. Supporting monorepos is out of scope for #11 (agent-harness and rater are single root packages).

@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary

I found no blocking issues. I didn't post any inline comments.

What I checked:

  • release-pr.yml: the job has permissions: {}, and only the App token can write. Outputs come from release-please's root-package outputs (release_created, tag_name). The README states that only a single root package (".") is supported.
  • release-publish.yml, inputs: TAG_NAME and ARTIFACT_NAME reach the shell only through env, so they can't inject commands.
  • release-publish.yml, checks before upload: the step confirms the tag resolves to GITHUB_SHA, which is the caller's commit inside a reusable workflow. It then checks the release is still a draft before --clobber, which protects assets that are already published. gh release view/upload can find draft releases even though the get-by-tag REST endpoint can't.
  • release-publish.yml, publish: make_latest=legacy stops a run for an older tag that finishes last from being marked latest.
  • Caller (release_please.yml): it moved to the reusable workflow with permissions: {}. Dropping the explicit credential check is acceptable, because create-github-app-token fails on empty inputs anyway.

Non-blocking notes:

  • Nothing in CI runs release-publish.yml. The PR says it will first be checked in the agent-harness migration PR, so that is the first real test of the verify, attest, upload and publish steps.
  • release-artifacts/* skips dotfiles and doesn't descend into subdirectories. This works with the README example (path: dist/*), but callers need to keep the artifact flat.

Blocking findings (P0/P1): 0

@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: 6ea64cc850

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md Outdated
Comment on lines +169 to +170
Together they release a repository with release-please, draft releases and immutable releases. A caller's
`release.yml` runs on every push to `main`, in three jobs:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Require callers to enable immutable releases

When a caller has not independently enabled GitHub's repository-level immutable-releases setting, these jobs only publish an ordinary release: the draft check prevents this workflow from overwriting an already-published release, but it does not stop users or other tokens from later changing or deleting its tag and assets. Because the documented setup never lists that repository setting as a prerequisite, following it does not provide the immutability promised here; document that callers must enable the setting or avoid claiming the resulting releases are immutable.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 8c3fcc8: the README now says the workflows only draft, attest and publish, and that the caller must enable the repository immutable releases setting before the first release.

@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

Comment on lines +40 to +44

# Provenance names the commit of this run, so the tag must point to it.
tag_sha="$(gh api "repos/$GH_REPO/commits/$TAG_NAME" --jq .sha)"
if [[ "$tag_sha" != "$GITHUB_SHA" ]]; then
echo "$TAG_NAME points to $tag_sha, but this run is for $GITHUB_SHA."

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: A draft can get stuck with no way to recover.

The README example uses concurrency: group: release-… with cancel-in-progress: false. GitHub keeps only one pending run per group, so a newer pending run cancels an older one. Here is the failure:

  1. The push of the release-PR merge commit M is queued behind a running release run.
  2. Someone pushes commit B before M's run starts, so M's pending run is cancelled.
  3. B's run calls release-please. It sees the merged autorelease: pending PR and creates the tag and draft at M.
  4. build checks out the tag and passes. This check then fails, because tag_sha (M) differs from GITHUB_SHA (B).

Re-running the job does not help because GITHUB_SHA is still B. The release stays a draft until someone steps in by hand.

The same thing happens when M and B arrive in one push. Possible fixes: document a recovery path, such as a workflow_dispatch on the tag that calls release-publish.yml. Or detect the case early in release-pr and fail with a clear message.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 72817ef by documenting a recovery path: the README example now has a workflow_dispatch trigger that builds and publishes a given draft tag when run on that tag (GITHUB_SHA is then the tagged commit), with the gh workflow run command. The check in release-publish.yml stays, because provenance must name the tagged commit. Not verified end to end yet.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary

I found no P0 or P1 issues. The tag/SHA check, the draft-only check before --clobber, and the scoped permissions all look right, and so do make_latest=legacy and passing artifacts within the same run.

  • P2: A release can get stuck as a draft in release-publish.yml. If the run for the release-PR merge commit is cancelled by the concurrency group, or arrives in the same push as a later commit, release-please tags the merge commit from a later run. The tag-vs-GITHUB_SHA check then fails. Re-running doesn't help, and there is no documented way to recover. Details are in the inline comment.

Tests: nothing in CI exercises release-publish.yml. The PR description already says it will be checked during the agent-harness migration.

@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: 8c3fcc8c51

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

path: release-artifacts

- name: Attest release artifacts
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Document the private-repository plan requirement

When a caller is a private or internal repository on GitHub Free, Pro, or Team, this attestation step is unavailable and fails before the assets are uploaded or the draft is published. The pinned action's documentation says private/internal repositories require GitHub Enterprise Cloud, but the reusable workflow is currently documented without that prerequisite; document this restriction so private callers do not adopt a release flow that cannot complete.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 72817ef: the README states that attestation needs a public repository, or GitHub Enterprise Cloud for private and internal ones, so release-publish.yml is not usable from a private repository on Free, Pro or Team.

@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary

I found no blocking issues and posted no inline comments.

What I checked:

  • release-publish.yml
    • Inputs reach shell steps only through env, so they can't inject script.
    • Permissions are limited to the job.
    • The tag→GITHUB_SHA check and the draft check run before any asset is changed.
    • If a run fails partway, re-running it is safe because the release stays a draft until the last step.
    • gh release view <tag> finds draft releases, because gh falls back to the pending tag name when no published release matches.
    • make_latest=legacy stops an older tag that publishes later from becoming latest.
  • release-pr.yml: outputs map to the root-package outputs of release-please. The App token is still scoped to the caller's repository, because github.event.repository.name resolves to the caller inside workflow_call.
  • release_please.yml: it now calls the local reusable workflow with permissions: {}, which is enough because the App token does all the writing.
  • README caller example: the !cancelled() and needs gating covers both the push path and the workflow_dispatch recovery path.

Not covered by tests: ci.yml does not run release-publish.yml. The PR description already says it will first be tested in the agent-harness migration PR, so I am not raising it as a finding.

Blocking findings (P0/P1): 0

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 72817ef1dd

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Workflow file names use kebab-case, as GitHub Actions and release-please-action do.
Replace the ls-lint workflow name list with one kebab-case rule and update the README.

Refs #11

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary: I found no blocking or minor issues.

What I checked:

  • release-pr.yml: the App token scope, the root-package outputs of release-please-action (release_created, tag_name), and that the outputs reach the caller.
  • release-publish.yml: the tag-to-GITHUB_SHA check, which resolves lightweight and annotated tags; the draft-only guard before --clobber; the attest, upload and publish order; and the make_latest=legacy PATCH.
  • This repo's release-please.yml: it now calls the shared workflow. Its config has no draft, which is fine because it uploads no assets.
  • The rename from release_please.yml to release-please.yml and the stricter ls-lint regex: every existing workflow file name is kebab-case, and nothing else references the old name.
  • The README caller example: the workflow_dispatch recovery path, the !cancelled() gating when release-pr is skipped, and the tag_name fallback.

As the PR notes, the end-to-end release behaviour can only be checked by a real release after merge. Nothing in the repo can exercise release-publish.yml before the agent-harness migration.

🤖 Generated with Claude Code

@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: 463338e7db

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

set -euo pipefail

shopt -s nullglob
files=(release-artifacts/*)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Handle nested files before uploading release assets

When the workflow artifact contains a subdirectory, which the documented dist/* upload can produce because upload-artifact preserves hierarchy after the wildcard, this glob adds the directory itself rather than its contained files. The subsequent gh release upload <tag> <files>... accepts asset files, so it fails on that directory and leaves the release as a draft. Either collect regular files recursively and define how their names are flattened, or explicitly require and validate a flat artifact.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in e701f13 by requiring a flat artifact: the README now says the artifact holds regular files only, no subdirectories, and that the upload-artifact path must match files. The workflow already fails loudly on a directory, before publishing, and the draft stays recoverable, so I did not add flattening logic that would have to define how names are rewritten.

@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@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: e701f138a0

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

set -euo pipefail

shopt -s nullglob
files=(release-artifacts/*)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include dotfiles when collecting release assets

When a flat artifact contains both an ordinary file and a dotfile, Bash's default * expansion omits the dotfile even though it satisfies the documented regular-files-only contract. The workflow therefore uploads and publishes the visible assets while silently leaving the dotfile out, and an immutable release cannot then be repaired; enable dotglob or explicitly reject dotfiles before publication.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not a defect, no change: actions/upload-artifact excludes hidden files by default (include-hidden-files: false, since v4.4), so a dotfile never reaches the artifact and cannot be silently left out here. Anything that contains a dotfile must opt in on the upload side, and the artifact is the contract that the README documents (regular files, flat).

@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary: no P0–P3 findings.

What I checked:

  • release-pr.yml: App token scoping, the root-package release_created/tag_name outputs, and the self-call from release-please.yml.
  • release-publish.yml: the tag and GITHUB_SHA check, the draft guard before --clobber, the permissions it needs, inputs passed through env (no expression injection), the empty-artifact guard, and make_latest=legacy.
  • README caller example, including the workflow_dispatch recovery path and the !cancelled() gating when release-pr is skipped.
  • .ls-lint.yml: every existing workflow file matches the new kebab-case regex.

Caveat: release-publish.yml is not run anywhere in this repo. Its first real run will be the agent-harness migration PR, as the description says.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: fa4dadc4b3

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit 5f7ab9f into main Nov 9, 2026
13 checks passed
@furedea
furedea deleted the feat/11-shared-release branch November 9, 2026 08:23
furedea pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.2.0](v1.1.0...v1.2.0)
(2026-11-09)


### Features

* **release:** add shared release-pr and release-publish workflows
([#20](#20))
([5f7ab9f](5f7ab9f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant