diff --git a/index.js b/index.js index 4031a392..0e61b2de 100644 --- a/index.js +++ b/index.js @@ -133,6 +133,9 @@ async function main() { if (remoteBranchExists) { const q = `head:${inputs.branch} type:pr is:open repo:${process.env.GITHUB_REPOSITORY}`; const { data } = await request("GET /search/issues", { + headers: { + authorization: `token ${process.env.GITHUB_TOKEN}`, + }, q, });