Since both ListOptions and ListCursorOptions implements `Page` and `PerPage` there is an ambiguity for both fields. https://github.com/google/go-github/blob/90bf4320bf6c2703f1c83918e30c5aaf6c93e795/github/code-scanning.go#L144 https://github.com/google/go-github/blob/90bf4320bf6c2703f1c83918e30c5aaf6c93e795/github/code-scanning.go#L148 My suggestion would be to add the explicit reference to the struct.