Add Claude Code GitHub Actions workflows#26
Open
jnasbyupgrade wants to merge 6 commits into
Open
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jul 13, 2026
`claude-code-review.yml` used `on: pull_request`, which gets no secrets on fork PRs, so CLAUDE_CODE_OAUTH_TOKEN was empty and review never ran for our fork-based PRs. Switch to `pull_request_target` (runs in the base repo with the secret available) and gate the job to PRs from the jnasbyupgrade fork only, so external forks can't trigger the secret-bearing job. Check out the PR head read-only (persist-credentials: false); no PR code is built or executed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Add concurrency groups (cancel stale review runs; serialize @claude without cancelling in-progress responses). - Add timeout-minutes: 30 to both jobs. - Skip draft PRs in the auto-review. - Pin actions/checkout and anthropics/claude-code-action to immutable SHAs. - persist-credentials: false on all checkouts. (plugin_marketplaces can't be pinned — it tracks the marketplace default branch.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Revert the SHA pins on actions/checkout and anthropics/claude-code-action back to @v4/@v1. For these first-party actions we want upstream fixes to flow in automatically rather than freezing at a SHA. (CodeRabbit/zizmor will flag the unpinned refs; that's an accepted trade-off here.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@claude mentions are independent, read-only requests; serializing only delays responses and cancelling would drop them. Concurrency stays on claude-code-review.yml (cancel stale review runs), where it's useful. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add tests/updates for pgxntool commit ec1150d: - update-setup-files.sh prunes pgxntool/.github and .claude (dev-only dirs copied in by git subtree) from consuming projects Assert pgxntool/.github is present before the sync and gone after. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Claude Code GitHub Actions workflows:
claude.yml(responds to@claudementions in issues/PRs) andclaude-code-review.yml(automated review on new PRs).Requires the
CLAUDE_CODE_OAUTH_TOKENsecret (a Claude subscription token fromclaude setup-token) and the Claude GitHub App granted access to this repo.Paired pgxntool PR: Postgres-Extensions/pgxntool#41
Replaces the
/install-github-appauto-generated PR, which targeted the fork and had a verbose boilerplate description.