Add Claude Code Action for automatic Renovate PR fixes
Summary
This PR adds a GitHub Actions workflow that uses Claude Code to automatically fix common issues in Renovate dependency update PRs.
What it does
The workflow triggers on Renovate PRs (opened and synchronize events) and automatically:
-
Fixes package-lock.json issues - Renovate often fails to correctly regenerate package-lock.json files. Claude will run
npm installin both the root directory andpackages/browser-injectablesto ensure lock files are properly updated. -
Fixes small API changes - When tests fail due to minor API changes (≤5 lines of code), Claude will detect and fix them automatically.
-
Performs security review - Checks dependency changes for known security issues and flags any concerns in a comment.
Example PRs with issues
- #2622 - Required 3 manual commits to fix package-lock.json
- #2621 - Similar package-lock issues
- #2620 - Similar package-lock issues
Configuration
The workflow:
- Uses
CLAUDE_CODE_OAUTH_TOKENfrom repository secrets (already configured) - Uses
ADOBE_BOT_GITHUB_TOKENfor GitHub operations - Only runs on PRs from
renovate[bot] - Has write permissions to fix issues and push commits
Testing
This workflow will activate on the next Renovate PR. Claude will analyze the PR, fix any issues, and commit the changes directly to the PR branch.
🤖 Generated with Claude Code
This PR will trigger a minor release when merged.