Skip to content

Commit

Permalink
*: try token fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Nov 21, 2024
1 parent 3ccd30a commit cbc8da6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion action.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ module.exports = async ({ github, context, inputs, actionPath }) => {
prnum: options.prnum,
debug,
runIfPrivate: options.run_if_private,
github
github,
githubToken: options.github_token // fallback to token use when downloading private repos
})

const filteredPatch = await filterdiff({
Expand Down
4 changes: 0 additions & 4 deletions src/getPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ export default async function getPatch ({
github = new Octokit({ auth: githubToken })
}

if (!githubToken) {
githubToken = process.env.GITHUB_TOKEN
}

if (debug) { console.log(`getPatch ${owner} ${repo} ${prnum}`) }

let patchBody = null
Expand Down

0 comments on commit cbc8da6

Please sign in to comment.