Skip to content

Commit

Permalink
fix: 🐛 use the correct env variable for private key
Browse files Browse the repository at this point in the history
  • Loading branch information
slugb0t committed Dec 2, 2024
1 parent 96d4e82 commit 9219131
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot/api/github/webhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const { createNodeMiddleware, createProbot } = require("probot");

const app = require("../../index.js");
const privateKey = process.env.PRIVATE_KEY.replace(/\\n/g, "\n");
const privateKey = process.env.GH_APP_PRIVATE_KEY.replace(/\\n/g, "\n");

const probot = createProbot({
overrides: {
Expand Down
2 changes: 1 addition & 1 deletion bot/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Server, Probot } from "probot";
import app from "./index.js";
// import "dotenv/config";
const privateKey = process.env.PRIVATE_KEY.replace(/\\n/g, "\n");
const privateKey = process.env.GH_APP_PRIVATE_KEY.replace(/\\n/g, "\n");

async function startServer() {
const server = new Server({
Expand Down

0 comments on commit 9219131

Please sign in to comment.