Commit 4119dff
Fix CI failures: replace gh API calls blocked by IP allow list (#1363)
## Summary
After migrating to GitHub-hosted runners (#1350), the `releaseFreeze`
and `checkNextChangelog` workflows fail with:
```
GraphQL: the databricks organization has an IP allow list enabled,
and your IP address is not permitted to access this resource.
```
GitHub-hosted runner IPs are not in the Databricks org allow list, so
`gh pr view` GraphQL calls are blocked.
## Fix
Replace `gh` CLI API calls with data already available locally:
- **PR body**: Use `github.event.pull_request.body` from the event
payload instead of `gh pr view --json body`
- **Changed files**: Use `git diff --name-only` between base and head
SHAs instead of `gh pr view --json files`
No API calls needed — all data comes from the event payload or local
git.
## Test plan
- [x] The PR itself will exercise both workflows when opened
NO_CHANGELOG=true
---------
Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8ecbfcd commit 4119dff
1 file changed
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
106 | 113 | | |
107 | 114 | | |
108 | 115 | | |
| |||
0 commit comments