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

Revert "github-actions: use GH app to manage the projects" #1662

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

v1v
Copy link
Member

@v1v v1v commented Oct 7, 2024

Reverts #1660

I need to find out why the permission is not correct... hence, I prefer to revert until I figure out what's going on

See https://github.com/elastic/apm-agent-go/actions/runs/11216690372

Error: Could not create installation access token.
    at createInstallationAccessToken (file:///home/runner/work/_actions/tibdex/github-app-token/3beb63f4bd073e61482598c45c71c1019b59b73a/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/3beb63f4bd073e6[14](https://github.com/elastic/apm-agent-go/actions/runs/11216690372/job/31176542839#step:2:15)82598c45c71c1019b59b73a/dist/main/index.js:9:87518
    at async run (file:///home/runner/work/_actions/tibdex/github-app-token/3beb63f4bd073e61482598c45c71c1019b59b73a/dist/main/index.js:9:88811)
    at async file:///home/runner/work/_actions/tibdex/github-app-token/3beb63f4bd073e61482598c45c71c1019b59b73a/dist/main/index.js:9:87468 {
  [cause]: RequestError [HttpError]: The permissions requested are not granted to this installation.
      at file:///home/runner/work/_actions/tibdex/github-app-token/3beb63f4bd073e61482598c45c71c1019b59b73a/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/3beb63f4bd073e61482598c45c71c1019b59b73a/dist/main/index.js:9:86119)
      at async file:///home/runner/work/_actions/tibdex/github-app-token/3beb63f4bd073e61482598c45c71c1019b59b73a/dist/main/index.js:9:87518
      at async run (file:///home/runner/work/_actions/tibdex/github-app-token/3beb63f4bd073e61482598c45c71c1019b59b73a/dist/main/index.js:9:88811)
      at async file:///home/runner/work/_actions/tibdex/github-app-token/3beb63f4bd073e61482598c45c71c1019b59b73a/dist/main/index.js:9:87468 {
    status: 422,
    response: {
      url: 'https://api.github.com/app/installations/5453[16](https://github.com/elastic/apm-agent-go/actions/runs/11216690372/job/31176542839#step:2:17)29/access_tokens',
      status: 422,
      headers: [Object],
      data: [Object]
    },
    request: {
      method: 'POST',
      url: 'https://api.github.com/app/installations/54531629/access_tokens',
      headers: [Object],
      body: '{"permissions":{"repository_projects":"write"}}',
      request: [Object]
    }
  }
}

@v1v v1v requested a review from a team as a code owner October 7, 2024 13:47
@v1v v1v requested a review from a team October 7, 2024 13:47
@v1v v1v enabled auto-merge (squash) October 7, 2024 13:51
@v1v v1v merged commit 0b20e23 into main Oct 7, 2024
11 of 12 checks passed
@dmathieu dmathieu deleted the revert-1660-feature/use-ephemeral-toke-gh-project branch October 7, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants