Skip to content

ci: Allow AI review on forks, pin claude workflow version - #3817

Merged
kodiakhq[bot] merged 1 commit into
mainfrom
drew/fix-deep-review-on-fork
Nov 24, 2026
Merged

kodiakhq[bot] merged 1 commit into
mainfrom
drew/fix-deep-review-on-fork

Conversation

@pulpdrew

@pulpdrew pulpdrew commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Problem: The claude workflow changed the default of allow_fork_prs to false, causing deep review to fail on forks.

Solution:

  1. Restore review workflows to allow_fork_prs: true as they were before.
  2. Pin the claude workflow version so that breaking changes aren't automatically adopted in the future.

References

  • Linear Issue:
  • Related PRs:

@pulpdrew
pulpdrew requested a review from a team as a code owner November 24, 2026 20:50
@vercel

vercel Bot commented Nov 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
hyperdx-oss Ignored Ignored Nov 24, 2026 8:50pm UTC
hyperdx-storybook Ignored Ignored Nov 24, 2026 8:50pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b2de823

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the review/tier-1 Trivial — auto-merge candidate once CI passes label Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🟢 Tier 1 — Trivial

Docs, images, lock files, a dependency bump, or an automated release. No functional code changes detected.

Why this tier:

  • All files are docs / images / lock files

Review process: Auto-merge once CI passes. No human review required.
SLA: Resolves automatically.

Stats
  • Production files changed: 0
  • Production lines changed: 0
  • Branch: drew/fix-deep-review-on-fork
  • Author: pulpdrew

To override this classification, remove the review/tier-1 label and apply a different review/tier-* label. Manual overrides are preserved on subsequent pushes.


- name: Run Claude to apply fixes
uses: anthropics/claude-code-action@v1
uses: anthropics/claude-code-action@eb56b6666facdbd501035f4a0269d8caee2e7a8b # v1.0.289

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already rejected forks

@github-actions

Copy link
Copy Markdown
Contributor

Duplicate code analysis

No new duplicate code introduced by this PR.


jscpd compared this branch against origin/main
across app, api and common-utils. Only new clones are listed; the codebase
currently holds 107 in total (1.12%).
Run yarn dupes locally to reproduce, or yarn dupes:all for the full picture.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review

✅ No issues found.

- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
uses: anthropics/claude-code-action@eb56b6666facdbd501035f4a0269d8caee2e7a8b # v1.0.289

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not run on forks because this agent can write to this repo.

@github-actions

Copy link
Copy Markdown
Contributor

Deep Review

✅ No critical issues found.

This change pins anthropics/claude-code-action from the mutable @v1 tag to an immutable commit SHA (eb56b666…, annotated v1.0.289) across all 5 call sites, and restores allow_fork_prs: 'true' on the three pull_request_target review jobs after upstream v1.0.288 flipped that default to false. SHA-pinning is a supply-chain improvement over a floating tag. The fork-review jobs run in data-only mode (no install/build/test of fork code, persist-credentials: false, sanitized PR title/body with a per-run fence, SHA-pinned CLI), so restoring fork-PR review reinstates documented prior behavior rather than opening a new exposure. The @claude mention workflow in claude.yml, which does run yarn install + make ci-build with contents: write, correctly receives only the SHA pin and not allow_fork_prs — the asymmetry is the right posture.

🟡 P2 -- recommended

  • .github/workflows/deep-review.yml:508 -- allow_fork_prs: 'true' runs this job on fork PRs under pull_request_target, where secrets.INFERENCE_GATEWAY_KEY and a write-scoped GITHUB_TOKEN are in scope; safety rests entirely on the unstated invariant that nothing in these jobs executes fork-controlled code.
    • Fix: Keep the "fork content is data, never executed" invariant asserted in each fork-enabled job's comment so a future step that adds a build/test/install of the PR head cannot silently turn these into pwn-request jobs.
🔵 P3 nitpicks (3)
  • .github/workflows/claude-code-review.yml:354 -- the claude-review and deep-review additions of allow_fork_prs: 'true' carry no explanatory comment, while the grade step does, leaving the rationale uneven across the three identical restorations.
    • Fix: Mirror the grade step's one-line comment onto the other two allow_fork_prs additions.
  • .github/workflows/claude.yml:48 -- the same action SHA is now duplicated across 5 uses: call sites with no single source of truth, so a future bump must be applied in five places and can drift.
    • Fix: Note the shared pin (or track bumps via a single changelog entry) so all five sites are updated together; GitHub Actions uses: cannot reference an env var, so full centralization is not possible.
  • .github/workflows/deep-review.yml:467 -- the # v1.0.289 annotation on the pinned SHA is author-supplied and not verifiable from the diff; a wrong tag comment would mislead future bumpers.
    • Fix: Confirm the SHA resolves to the v1.0.289 release tag before merge.

Reviewers (6): correctness, security, reliability, maintainability, project-standards, previous-comments.

Testing gaps: Workflow changes are not exercised until a fork PR triggers the jobs; verify on the first post-merge fork PR that allow_fork_prs: 'true' restores review and the pinned action resolves.

No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond

@github-actions

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ All tests passed • 474 passed • 1 skipped • 1077s

Status Count
✅ Passed 474
❌ Failed 0
⚠️ Flaky 14
⏭️ Skipped 1

Tests ran across 4 shards in parallel.

View full report →

@kodiakhq
kodiakhq Bot merged commit 514db54 into main Nov 24, 2026
82 of 97 checks passed
@kodiakhq
kodiakhq Bot deleted the drew/fix-deep-review-on-fork branch November 24, 2026 22:33
drewhammond added a commit to drewhammond/ClickStack that referenced this pull request Nov 25, 2026
…dismiss

* upstream/main:
  fix: prevent unnecessary histogram rerender (ClickHouse#3749)
  fix(mcp): reject unknown tool arguments instead of ignoring them (ClickHouse#3787)
  feat(mcp): maxBodyChars mines only the start of each body in event_patterns and emerging_signals (ClickHouse#3742)
  ci: Allow AI review on forks, pin claude workflow version (ClickHouse#3817)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge review/tier-1 Trivial — auto-merge candidate once CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants