Skip to content

Commit

Permalink
chore: fixed octokit auth
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Feb 3, 2025
1 parent 75c2c76 commit 765fa8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cron/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import db from "./database-handler";
async function main() {
const logger = new Logs(process.env.LOG_LEVEL ?? "info");
const octokit = new Octokit({
auth: process.env.GITHUB_TOKEN,
authStrategy: createAppAuth,
auth: {
appId: Number(process.env.APP_ID),
privateKey: process.env.APP_PRIVATE_KEY,
installationId: process.env.APP_INSTALLATION_ID,
},
});

const fileContent = db.data;
Expand Down

0 comments on commit 765fa8a

Please sign in to comment.