Commit 4b9b845
fix(workflows): proper secret validation and dependabot support
**Claude Code Review workflow:**
- Check secret at job level: skip entire workflow if CLAUDE_CODE_OAUTH_TOKEN is not set
- Remove unnecessary steps checking secret in bash (doesn't work reliably)
- Add comprehensive header documentation explaining optional setup
- Workflow now gracefully skips when secret is missing
**dev-to-main workflow:**
- Fix dependabot branch validation using regex (=~) instead of glob (==)
- Pattern ^dependabot/ now correctly matches branches like dependabot/github_actions/*
- Add detailed logging when dependabot PR is detected
- Both actor check and branch prefix check working properly
**Result:**
- Dependabot PRs will now pass validation without needing dev branch
- Claude Code Review won't fail when secret is missing (just skips)
- All PR checks should pass for dependency update PRs
Fixes GitHub Actions errors for dependabot PRs.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 049bc8c commit 4b9b845
2 files changed
+31
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
1 | 23 | | |
2 | 24 | | |
3 | 25 | | |
| |||
13 | 35 | | |
14 | 36 | | |
15 | 37 | | |
16 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
17 | 42 | | |
18 | 43 | | |
19 | 44 | | |
| |||
29 | 54 | | |
30 | 55 | | |
31 | 56 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 57 | | |
46 | | - | |
47 | 58 | | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
52 | | - | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments