Fine-grained PATs can't read check runs, which breaks gh pr view and gh pr checks #214496
Replies: 2 comments
|
💬 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. ⭐ |
|
I strongly agree with this proposal. Fine-grained personal access tokens should provide read-only access to check runs, especially when users already have full read access to the repository. The current limitation creates an unnecessary gap between repository permissions and CI visibility. Developers should not have to switch to a classic PAT, use a broader OAuth token, or set up a GitHub App just to retrieve check results. A dedicated Checks: Read-only repository permission would be a straightforward and secure solution. It would allow developers to inspect CI results while preserving the principle of least privilege. This would also improve compatibility with GitHub CLI, automated CI monitoring tools, and AI coding agents that rely on fine-grained tokens to operate securely within a specific organization. Allowing read access without granting write permissions would be a valuable improvement to GitHub's permission model. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
API
Body
Fine-grained personal access tokens have no Checks permission, so they can't read check runs, even read-only, on repos where they otherwise have full read access.
What happens:
Why it matters: fine-grained PATs are the recommended way to give a token access to a single organization. The alternatives that can read check runs, a classic PAT or the gh auth login OAuth token, cover every repo the user can access. The only way to read CI results with org-only scope is to build and install a GitHub App, which is a lot of setup just to see whether CI passed.
Request: add a Checks: Read-only repository permission for fine-grained PATs, matching the existing Commit statuses permission. If write access has to stay limited to GitHub Apps, read access alone would solve this.
All reactions