chore: remove Claude workflows#403
Conversation
Entire-Checkpoint: ece952fb64ea
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughThis PR refines the main Claude GitHub Actions workflow: it tightens the job's trigger expression to better detect 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Deploying usesend with
|
| Latest commit: |
4d9c124
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8854c967.usesend.pages.dev |
| Branch Preview URL: | https://fix-claude-workflows.usesend.pages.dev |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/claude-code-review.yml:
- Around line 25-26: The workflow currently checks out the
contributor-controlled PR head (ref: refs/pull/${{ github.event.issue.number
}}/head) and then loads reviewer guidance from AGENTS.md, which allows a PR to
tamper with reviewer instructions; change the workflow so reviewer guidance is
loaded from a trusted branch/path instead of the PR head—e.g., keep the existing
checkout for running tests on the PR but add a separate actions/checkout
invocation (or a dedicated fetch) that checks out the repository at a pinned ref
(main or a trusted branch) and read AGENTS.md from that checked-out trusted
copy; update any steps that reference AGENTS.md to point to that trusted
workspace rather than the PR head.
In @.github/workflows/claude.yml:
- Around line 16-27: The workflow currently grants write permissions for any
event that contains '`@claude`' (the github.event_name condition block) allowing
untrusted actors to trigger repo mutations; restrict triggering and write
permissions by adding an explicit trust gate: require
github.event.*.author_association to be one of trusted values (e.g., OWNER,
MEMBER, COLLABORATOR, MAINTAINER, or a defined allowlist) in the same
conditional expressions that check for '`@claude`' (the existing github.event_name
== ... && contains(...) clauses), and remove or downgrade write permissions in
the permissions block to read-only unless that trust condition is met (or split
into two jobs/paths where only the trusted-path job has contents: write,
pull-requests: write, issues: write).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e6ab3cd5-2c3e-4aa7-903c-79bce771855a
📒 Files selected for processing (2)
.github/workflows/claude-code-review.yml.github/workflows/claude.yml
Entire-Checkpoint: 3b66c252f834
Summary
Validation
git diff --check.github/workflows/*claude*.ymlor.github/workflows/*claude*.yamlfiles remain.No build or migration commands were run.
Summary by CodeRabbit