diff --git a/index.js b/index.js index 7b7e70e..a21a8b2 100644 --- a/index.js +++ b/index.js @@ -156,6 +156,12 @@ async function commitChanges(filePath) { `https://api.github.com/repos/${owner}/${repo}/git/refs/heads/${branch}`, { sha: newCommitSha, + }, + { + headers: { + 'Accept': 'application/vnd.github+json', + 'Authorization': `Bearer ${githubToken}`, + }, } );