Skip to content

“Resource not accessible by integration” when requesting GitHub Pages build via REST API #24701

Discussion options

You must be logged in to vote

Hi @btouellette,

Thank you for being here! It seems like you’re authenticating using a GitHub App installation access token. It isn’t currently possible to request page builds as a GitHub App installation (server-to-server request).

While this endpoint is enabled for GitHub Apps, you’ll need to make a user-to-server request to request a page build:

https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests

Could you give that a try and let us know if that helps?

Best,

Your GitHub Community Team

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants