From c00f82031211bd8f72046ac30db88f55fe0d8e7f Mon Sep 17 00:00:00 2001 From: f Date: Mon, 6 Jan 2025 00:42:58 +0300 Subject: [PATCH] update --- .github/workflows/ai_bot.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ai_bot.yml b/.github/workflows/ai_bot.yml index 159af29..93c333b 100644 --- a/.github/workflows/ai_bot.yml +++ b/.github/workflows/ai_bot.yml @@ -28,6 +28,7 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + token: ${{ secrets.PAT_TOKEN }} - name: Setup Node.js uses: actions/setup-node@v3 @@ -40,7 +41,7 @@ jobs: - name: Process command id: process env: - GH_SECRET: ${{ secrets.GH_SECRET }} + GH_TOKEN: ${{ secrets.PAT_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} run: | node << 'EOF' @@ -53,7 +54,7 @@ jobs: }); const octokit = new Octokit({ - auth: process.env.GH_SECRET + auth: process.env.GH_TOKEN }); const eventName = process.env.GITHUB_EVENT_NAME;