action-dependabot-auto-merge icon indicating copy to clipboard operation
action-dependabot-auto-merge copied to clipboard

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

Open bennycode opened this issue 3 years ago • 1 comments
trafficstars

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/[email protected]
        with:
          github-token: ${{ secrets.GH_AUTOMERGE_TOKEN }}

Best, Benny

bennycode avatar Mar 23 '22 19:03 bennycode

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

  • repo for private repositories
  • public_repo for public repositories

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

lucasdrpires avatar Dec 23 '22 14:12 lucasdrpires