The actions/github-script has an option to send a request, that is already authenticated with the GitHub API.
const diff_url = context.payload.pull_request.diff_url
const result = await github.request(diff_url)
The actions/github-script has an option to send a request, that is already authenticated with the GitHub API.
const diff_url = context.payload.pull_request.diff_url
const result = await github.request(diff_url)