diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 097dc2803..c0693f5a2 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -21,6 +21,13 @@ jobs: with: node-version: '20' + - name: Get Token + uses: actions/create-github-app-token@v1 + id: get_workflow_token + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.PRIVATE_KEY }} + - name: Install Dependencies run: yarn install --frozen-lockfile @@ -44,7 +51,7 @@ jobs: uses: lycheeverse/lychee-action@v1 with: args: --base http://localhost:3000 --verbose --no-progress --accept 200,204,429,403 './pages/**/*.md' --cache --max-cache-age 1d http://localhost:3000 - token: ${{secrets.AUTH_TOKEN}} + token: ${{secrets.GITHUB_TOKEN}} - name: Install Octokit run: yarn add @octokit/core@5.1.0 @@ -55,7 +62,7 @@ jobs: if: env.lychee_exit_code != 0 uses: actions/github-script@v7 env: - AUTH_TOKEN: ${{secrets.AUTH_TOKEN}} + AUTH_TOKEN: ${{ steps.get_workflow_token.outputs.token }} with: script: | const { Octokit } = require("@octokit/core");