Commit 6c62328
fix: handle GitHub's fork PR security restrictions in external services tests
GitHub blocks secrets access for workflows triggered by pull requests from forks.
This is expected security behavior that prevents malicious PRs from accessing secrets.
Updates external services tests to:
✅ Pass when secrets are available (direct pushes to main repo)
✅ Skip gracefully when secrets are blocked (fork PRs)
✅ Provide informative logging about security behavior
✅ Still validate deployment environment correctly
This resolves Primary CI failures for fork-based development workflow while
maintaining proper security validation for deployment environments.
Tests now properly handle:
- GOOGLE_SHEETS_API_KEY unavailable in fork PRs
- GSHEETS_SA_KEY unavailable in fork PRs
- GITHUB_TOKEN unavailable in fork PRs
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 1555a39 commit 6c62328
File tree
1 file changed
+19
-2
lines changed- packages/theme/src/tests/deployment
1 file changed
+19
-2
lines changedLines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| 55 | + | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
| |||
61 | 70 | | |
62 | 71 | | |
63 | 72 | | |
64 | | - | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
70 | 87 | | |
71 | 88 | | |
72 | 89 | | |
| |||
0 commit comments