Anthropic ships an official claude-code-action that runs Claude Code inside a GitHub Actions workflow. It can read your repo, write files, run commands, and commit, all triggered by a PR comment or a schedule.
The interesting part: it uses the same Claude Code you run locally, so your CLAUDE.md instructions carry over. The action respects the same permission model.
Immediate use cases I’m thinking about:
- Auto-generate TIL posts from GitHub Issues with a specific label
- Run a nightly review pass on open PRs
- Summarize recent commits and update a changelog
The main constraint is the Actions runner environment: you need to install any tools Claude Code will call (glow, rsync, etc.) as workflow steps before handing off to the action.
Reference: claude-code-action docs