ahmadnassri / action-dependabot-auto-merge

Automatically merge Dependabot PRs when version comparison is within range
MIT License
342 stars 48 forks source link

HttpError: Not Found at /action/node_modules/@octokit/request #128

Open bennycode opened 2 years ago

bennycode commented 2 years ago

Hello, I am using your action in a private repo but it fails with this output:

loaded merge config:

  • match: dependency_type: all update_type: 'semver:minor'

title: "chore(deps): bump minimist from 1.2.5 to 1.2.6" depName: minimist from: 1.2.5 to: 1.2.6 dependency type: production security critical: false config: all:semver:minor all:semver:minor detected, will auto-merge Error: Not Found HttpError: Not Found at /action/node_modules/@octokit/request/dist-node/index.js:66:23 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async approve (file:///action/lib/api.js:2:3) at async default (file:///action/lib/index.js:31:5) at async file:///action/index.js:53:1

Am I doing something wrong?

Here is my config:

.github/auto-merge.yml

- match:
    dependency_type: all
    update_type: 'semver:minor'

.github/workflows/merge-dependencies.yml

name: 'Merge Dependencies'

# https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
# https://github.com/ahmadnassri/action-dependabot-auto-merge/issues/60#issuecomment-806027389
on: [pull_request_target]

jobs:
  auto-merge:
    runs-on: ubuntu-latest
    if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
    steps:
      - name: 'Checkout repository'
        uses: actions/checkout@v3
      - name: 'Automerge dependency updates from Dependabot'
        uses: ahmadnassri/action-dependabot-auto-merge@v2.6
        with:
          github-token: ${{ secrets.GH_AUTOMERGE_TOKEN }}

Best, Benny

lucasdrpires commented 1 year ago

Hey bro, probably your github token dont have the correctly permissions. Your token must have 2 necessarie permissions. There is it:

Try creating a new token with that corrects permissions and try again!