middlewarehq / middlewarehq/middleware

Allow using GitHub fine grained tokens

Open
#643 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue javascript web-server
Dominant language
TypeScript
Stars
1.6k
Forks
170
PR merge metrics
No merged PRs in 30d

Description

Why do we need this ?

Currently, to access GitHub's resources the only supported authentication method is by using Personal Authentication Tokens (classic). Some organizations do not allow PATs to access organization resources, only fine grained tokens. Allowing fine grained tokens would make it possible for organizations that have this setting to utilize Middleware.

Acceptance Criteria

Being able to use a fine grained tokens in the github integration.

Further Comments / References

I think this would be an easy change because the requests to the api would be identical. Only the code that checks the token length/permissions that would need to change.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file or test. Start by locating the GitHub integration's token length and permission checks, then verify how fine-grained tokens are handled; done means a fine-grained token can authenticate successfully in the integration.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, typescript
Domain
backend, devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.