Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
ci(claude): drop automatic PR review, keep @claude on-demand only
Jose Ramirezf5ce611994db
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.ymldeleted file mode 100644index fa33dceb5..000000000--- a/.github/workflows/claude-code-review.yml+++ /dev/null@@ -1,52 +0,0 @@-name: Claude PR Review--# Automatic Claude review on every internal pull request.-#-# NOTE (public repo): PRs opened from forks do not receive repository secrets,-# so CLAUDE_CODE_OAUTH_TOKEN is unavailable for them. The `if:` guard on the job-# skips fork PRs to avoid a confusing red failure. External contributors can-# still request a review on demand by mentioning @claude (see claude.yml).--on:- pull_request:- types: [opened, synchronize, ready_for_review, reopened]--jobs:- review:- # Skip fork PRs (no secret access) and draft PRs.- if: >-- github.event.pull_request.head.repo.full_name == github.repository &&- github.event.pull_request.draft == false- runs-on: ubuntu-latest- permissions:- contents: read- pull-requests: write- id-token: write- steps:- - name: Checkout repository- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- with:- fetch-depth: 1-- - name: Claude PR review- uses: anthropics/claude-code-action@44423bdec74b97d67543eb16c110546762c110b2 # v1- with:- claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}- track_progress: true- prompt: |- REPO: ${{ github.repository }}- PR NUMBER: ${{ github.event.pull_request.number }}-- Perform a focused code review of this pull request. Prioritize:-- 1. Correctness and edge cases — logic errors, off-by-one, null/error handling.- 2. Security — input validation, auth/authz, secret handling, injection.- 3. Performance — obvious bottlenecks, N+1 queries, resource leaks.- 4. Tests — coverage for new behavior and important edge cases.- 5. Clarity — readability and maintainability of the changed code.-- Leave inline comments for specific issues and a short top-level- summary. Be concise; skip praise-only comments. If the change looks- good, say so briefly.- claude_args: |- --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.ymlindex 3f02a7370..c8ba8185d 100644--- a/.github/workflows/claude.yml+++ b/.github/workflows/claude.yml@@ -1,8 +1,11 @@name: Claude Code-# On-demand Claude, triggered by an @claude mention in an issue, PR comment,-# or PR review. This is the path external (fork) contributors can use, since the-# automatic review in claude-code-review.yml skips fork PRs (no secret access).+# On-demand Claude, triggered by an @claude mention in an issue, a PR comment,+# or a PR review. Contributors comment "@claude ..." on a PR to request a review+# or ask Claude to make a change. There is no automatic review on every PR.+#+# Mirrors keyper-labs/evenfire (the private repo); the only deltas are the+# SHA-pinned actions required by this repo's action-pinning policy.on:issue_comment:@@ -16,16 +19,16 @@ on:jobs:claude:- if: >-+ if: |(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))runs-on: ubuntu-latestpermissions:- contents: write- pull-requests: write- issues: write+ contents: read+ pull-requests: read+ issues: readid-token: writeactions: read # Required for Claude to read CI results on PRssteps:@@ -39,3 +42,14 @@ jobs:uses: anthropics/claude-code-action@44423bdec74b97d67543eb16c110546762c110b2 # v1with:claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}++ # Allows Claude to read CI results on PRs+ additional_permissions: |+ actions: read++ # Optional: Give a custom prompt to Claude. If not specified, Claude+ # follows the instructions in the comment that tagged it.+ # prompt: 'Review this PR for correctness, security, and tests.'++ # Optional: customize behavior via claude_args+ # claude_args: '--allowed-tools Bash(gh pr:*)'