null is not an object (evaluating 'prData.headRepository.nameWithOwner') #9452

Open
opened 2026-02-16 18:12:29 -05:00 by yindo · 2 comments
Owner

Originally created by @karalabe on GitHub (Feb 16, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I've just configured OpenCode on a private repo, tried to ping it on a PR (opened from a fork), it crashes with:

null is not an object (evaluating 'prData.headRepository.nameWithOwner')

Any ideas how to fix this? Bit underwhelming that it insta-crashes.

Plugins

No response

OpenCode version

GitHub Actions

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @karalabe on GitHub (Feb 16, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I've just configured OpenCode on a private repo, tried to ping it on a PR (opened from a fork), it crashes with: ``` null is not an object (evaluating 'prData.headRepository.nameWithOwner') ``` Any ideas how to fix this? Bit underwhelming that it insta-crashes. ### Plugins _No response_ ### OpenCode version GitHub Actions ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:12:29 -05:00
Author
Owner

@karalabe commented on GitHub (Feb 16, 2026):

This chokes with both the app installation token as well as the GITHUB_TOKEN.

@karalabe commented on GitHub (Feb 16, 2026): This chokes with both the app installation token as well as the GITHUB_TOKEN.
Author
Owner

@karalabe commented on GitHub (Feb 16, 2026):

Personal Access Tokens also can't work. Beucase they are scoped either to your own user or to the org account. But they can't be scoped to both a GitHub org and a GitHub user, so they cannot ever have enough permissions for this case.

@karalabe commented on GitHub (Feb 16, 2026): Personal Access Tokens also can't work. Beucase they are scoped either to your own user or to the org account. But they can't be scoped to *both* a GitHub org and a GitHub user, so they cannot ever have enough permissions for this case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9452