tibdex/github-app-token

Error: HttpError: Not Found

Closed this issue · 2 comments

When using the bare minimum example i get following error:

Error: HttpError: Not Found

I think that might relates to the GITHUB_API_URL in the fetch request?

Code:

jobs:
  track_pr:
    runs-on: ubuntu-latest
    steps:
      - name: Generate token
        id: generate_token
        uses: tibdex/github-app-token@v1
        with:
          app_id: ${{ secrets.APP_ID }}
          private_key: ${{ secrets.APP_PEM }}

I ran into this issue, or at least one which resulted in the same error. In my case it was because while I had created an app, I had forgotten to actually add it to the repository where I tried to use this action. @savnik perhaps this is your problem as well?

@ahockersten yes I solved it by something similar. I had the wrong permissions configured for the app. Basically i created the app without permissions. Applied it to the repo and then updated the permissions to the correct ones.
However the fatal mistake was I forgot to update in the repo the new permissions for the app.

Suggestion for improvement is to make the error point in the direction of the root cause.