Conversation
- Add sign-on-dispatch job with base_branch/version_bump inputs and merge-base signing - Rename approval job to sign-on-approval; fix concurrency for manual runs - Document default-branch vs Run workflow on dev; update tests and CHANGELOG - Refactor workflow tests to satisfy code-review complexity gate Made-with: Cursor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughCI/Workflow: Manual workflow_dispatch for sign-modules-on-approvalUser-visible behavior and operator surface
Contract/API impactNo changes to public Python functions, Pydantic models, module boundaries, or CLI surface. This is purely a CI/workflow enhancement. Testing and quality gates
Documentation and CHANGELOG updates
Module signing flow changes
WalkthroughThe PR enhances the module-signing CI workflow by introducing manual Changes
Sequence DiagramsequenceDiagram
actor User
participant GHA as GitHub Actions
participant Scripts as Signing Scripts
participant Git as Git/Origin
participant Manifest as Manifest Files
User->>GHA: Trigger workflow_dispatch<br/>(base_branch=dev, version_bump=minor)
GHA->>GHA: Validate SIGNING_KEY secret present
GHA->>Scripts: Checkout trusted scripts<br/>from base_branch
GHA->>Git: Checkout PR branch
GHA->>Git: Compute merge-base<br/>vs origin/base_branch
GHA->>Scripts: Run sign-modules.py<br/>--changed-only --bump-version minor
Scripts->>Manifest: Sign changed modules
Manifest->>GHA: Manifest files staged
GHA->>Git: Commit & push to<br/>GITHUB_REF_NAME
Git->>User: Signing complete,<br/>changes pushed
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Possibly related PRs
Suggested labels
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9bfe5f3bb3
ℹ️ 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".
| on: | ||
| pull_request_review: | ||
| types: [submitted] | ||
| workflow_dispatch: |
There was a problem hiding this comment.
Do not depend on workflow_dispatch before default-branch rollout
This change is intended to let maintainers run the signer from dev before the workflow exists on main, but workflow_dispatch does not fire unless the workflow file is already present on the default branch, so the new manual path cannot be used in the rollout window it is meant to cover. In that state, approval-time signing is still blocked and the operational guidance added in this commit fails.
Useful? React with 👍 / 👎.
| options: | ||
| - dev | ||
| - main | ||
| default: dev |
There was a problem hiding this comment.
Prevent no-op defaults for manual signing on dev
The new dispatch input defaults base_branch to dev, but when operators run this workflow on branch dev (the documented bootstrap flow), git merge-base HEAD origin/dev resolves to HEAD, so --changed-only --base-ref "$MERGE_BASE" selects no module changes and silently skips signing. This makes the default path ineffective unless users override the input each time.
Useful? React with 👍 / 👎.
Summary
Adds workflow_dispatch so signing can be run from Actions on
devbefore this workflow exists on the default branch (main).Changes
sign-on-dispatchjob: inputsbase_branch,version_bump; trusted scripts from integration branch tip;--changed-onlyvsgit merge-basetoorigin/<base_branch>; push to the branch selected in Run workflow.sign-on-approval: renamed fromsign; explicitpull_request_reviewguard inif.How to verify after merge to dev
Actions → Sign modules on PR approval → Run workflow → branch dev → run.
Made with Cursor