Support fine-grained PATs and GitHub App user tokens in the Notifications API #214486
Unanswered
korthout
asked this question in
Apps, API and Webhooks
Replies: 1 comment
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
API
Body
Please add a Notifications account permission to fine-grained personal access tokens and GitHub App user access tokens, so the notifications REST endpoints work with them. Today these endpoints don't accept either token type.
This gap is known. In October 2022, the fine-grained PAT feedback discussion listed Notifications as an API "that we'll be adding support for in time". I can't find it on the public roadmap, and a recent request for GitHub App support was closed without an answer.
Security. My employer's org follows GitHub's advice and blocks classic PATs. That's a good policy, but it leaves me no least-privilege way to read my own notifications through the API. My classic PAT with only the
notificationsscope gets a 403 for that org: "forbids access via a personal access token (classic)". The/notificationsendpoint doesn't even return that error. It silently leaves out the org's threads, so my inbox looks smaller than it is. What's left is an OAuth app that an org owner has to approve, or reusing a broad token like the GitHub CLI's, which comes with fullrepoaccess. Both are worse than a fine-grained token that can only touch notifications.AI agents. Coding agents now open pull requests, request reviews and comment, and my inbox has grown with them: about 150 threads from one repository alone. Most of it is noise that an AI assistant can triage well. GitHub sees this too: the GitHub MCP server ships notification tools and a notification-triage skill. But those tools call the same endpoints, so they don't work with fine-grained PATs or GitHub App tokens either. In an org that blocks classic PATs, the only way to use them is to give the agent far more access than it needs.
A Notifications account permission (read, plus write to mark threads read or done and to manage subscriptions) would fix this. Orgs keep their classic PAT ban, and users get a token that can only touch their own notifications.
All reactions