Setting commit status from GitHub app and receiving "Resource not accessible by integration"

I have set the following permissions for the app:

Repository Admin: RO

Repository Contents: RO

Pull Requests: RW

Commit Statuses: RW

Emails: RO

But I’m receiving “Resource not accessible by integration” when I use the “octokit/rest” api to set a commit status on a pull request from within a private repository.

Can someone please explain why?

Sorry, please close this issue, I hadn’t noticed the email in my inbox asking me to confirm the additional permissions required on my repositories! D’oh!