GitHub Action wrapper for codex-maintainer-kit.
It runs the CLI in GitHub Actions and generates Codex-ready maintenance artifacts for open source repositories:
OSS_MAINTENANCE_AUDIT.mdMAINTAINER_BRIEF.mdCODEX_TASKS.mdcodex-tasks.jsonCODEX_REVIEW.md
The action also writes a GitHub Actions job summary with the audit score, review risk, and artifact paths. The intent is human-reviewed OSS maintenance. The action surfaces work, drafts task queues, and stores artifacts. It does not auto-merge, auto-release, or grant Codex write access.
New to this project? Start with a plain-language explanation:
Choose the shortest path for your situation:
- Start Here / まずここから: understand the action in the first 3 minutes.
- Use Cases / ユースケース: choose scheduled maintenance review, PR artifact generation, or manual workflow runs.
name: Codex maintenance
on:
workflow_dispatch:
schedule:
- cron: "0 9 * * 1"
jobs:
codex-maintenance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: goonobu-dot/codex-maintainer-action@v0.2.0
with:
output-dir: codex-maintenance| Input | Default | Description |
|---|---|---|
repo-path |
. |
Repository path to inspect. |
output-dir |
codex-maintenance |
Directory where generated files are written. |
kit-ref |
v0.3.0 |
Branch, tag, or commit of codex-maintainer-kit to install. |
comment-pr |
false |
Post a short pull request comment with artifact paths and maintainer review guidance. |
upload-artifact |
true |
Upload generated files as an artifact. |
artifact-name |
codex-maintenance |
Artifact name. |
| Output | Description |
|---|---|
output-dir |
Directory containing generated maintenance files. |
maintenance-audit |
Path to OSS_MAINTENANCE_AUDIT.md. |
maintainer-brief |
Path to MAINTAINER_BRIEF.md. |
codex-tasks |
Path to CODEX_TASKS.md. |
codex-tasks-json |
Path to codex-tasks.json. |
codex-review |
Path to CODEX_REVIEW.md. |
PR comments are disabled by default. Enable them only on pull request workflows where you want maintainers to see the generated artifact paths directly in the conversation:
permissions:
contents: read
pull-requests: write
on:
pull_request:
jobs:
codex-maintenance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: goonobu-dot/codex-maintainer-action@v0.2.0
with:
comment-pr: "true"
output-dir: codex-maintenanceThe comment is intentionally short. It points to generated artifacts and repeats the human review rule instead of pasting full reports into the PR.
kit-ref controls which codex-maintainer-kit release the action installs.
Use a pinned release tag for normal repositories:
with:
kit-ref: v0.3.0Pinned tags make workflow output stable and easier to review. Use a full commit SHA when you need maximum reproducibility for regulated or high-trust maintenance workflows. Use main only when testing the newest CLI behavior before a release; avoid main in production workflows because generated output can change without warning.
codex-maintainer-kit is the CLI. This repository is the GitHub-native runner.
Use the CLI locally when a maintainer wants to inspect a repository by hand. Use this action when a repository should regularly produce maintenance artifacts through GitHub Actions.
- No secrets are required.
- The action reads the checked-out repository and writes generated files to
output-dir. - Generated files are uploaded as workflow artifacts when
upload-artifactistrue. - Pull request comments are posted only when
comment-pristrueand the workflow grantspull-requests: write. - A human maintainer reviews generated tasks before opening PRs or merging changes.
Run local contract tests:
python3 -m pytest -p no:cacheprovider tests -qMIT