Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bennycode opened this issue Mar 23, 2022 · 1 comment
Open

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

bennycode opened this issue Mar 23, 2022 · 1 comment

Comments

@bennycode
Copy link

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

@lucasdrpires
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants