Validating Token Capabilities and Permissions against GitHub #144
Labels
feature-request
good first issue
Good for newcomers
help wanted
Extra attention is needed
meeting-agenda
provider-github
providers
Milestone
We want to create a new function to help us validate token capabilities.
The idea is to check that we have the right level of permissions for a given entity (for example, verifying permissions against specific organizations during checks). As an example:
curl -I -H "Authorization: token TOKEN" https://api.github.com/user/memberships/orgs/expressjs
This request can return
200
(with the detail level shown in theX-OAuth-Scopes
header) or404
if the token lacks access.Additionally, we need to extend the configuration (index.js) to list the permission levels required by VisionBoard. This will ensure:
This new function will replace the current use of ensureGithubToken within the providers file (index.js).
Instead,
ensureGithubToken
will be called internally as part of the execution of this new function.The text was updated successfully, but these errors were encountered: