Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Installation ID maybe not following github_api_url #97

Description

@bosch-ch

Very excited to see the V2 update features!

I'm using GitHub Enterprise server. It looks like the update may not be following the github_api_url input. Tried with both retrieval mode=organization (gets a 404, but no useful log) & mode=id (log below).

Would also be useful to get an example of what "JSON-stringified permissions" should look like. I used '{ "metadata": "read","contents": "read"}'

Thanks!

Run tibdex/github-app-token@v2
Error: Could not create installation access token.
    at createInstallationAccessToken (file:///home/runner/work/_actions/tibdex/github-app-token/v2/dist/main/index.js:9:86267)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///home/runner/work/_actions/tibdex/github-app-token/v2/dist/main/index.js:9:875[18](https://github.com/bosch-tamer/arc-runner/actions/runs/6421442387/job/17435810580#step:2:19)
    at async run (file:///home/runner/work/_actions/tibdex/github-app-token/v2/dist/main/index.js:9:88811)
    at async file:///home/runner/work/_actions/tibdex/github-app-token/v2/dist/main/index.js:9:87468 {
  [cause]: RequestError [HttpError]: Not Found
      at file:///home/runner/work/_actions/tibdex/github-app-token/v2/dist/main/index.js:1:64431
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async createInstallationAccessToken (file:///home/runner/work/_actions/tibdex/github-app-token/v2/dist/main/index.js:9:861[19](https://github.com/bosch-tamer/arc-runner/actions/runs/6421442387/job/17435810580#step:2:20))
      at async file:///home/runner/work/_actions/tibdex/github-app-token/v2/dist/main/index.js:9:87518
      at async run (file:///home/runner/work/_actions/tibdex/github-app-token/v2/dist/main/index.js:9:88811)
      at async file:///home/runner/work/_actions/tibdex/github-app-token/v2/dist/main/index.js:9:87468 {
    status: 404,
    response: {
      url: 'https://api.github.com/app/installations/[26](https://github.com/bosch-tamer/arc-runner/actions/runs/6421442387/job/17435810580#step:2:27)32/access_tokens',
      status: 404,
      headers: [Object],
      data: [Object]
    },
    request: {
      method: 'POST',
      url: 'https://api.github.com/app/installations/2632/access_tokens',
      headers: [Object],
      body: '{"permissions":{"metadata":"read","contents":"read"}}',
      request: [Object]
    }
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions