Template URLs for Fine-Grained PATs and Updated Permissions UI
Allison summarizes improvements to GitHub’s fine-grained PAT creation, including a revamped permissions picker UI and shareable template URLs to streamline token generation for developers.
Template URLs for Fine-Grained PATs and Updated Permissions UI
GitHub has introduced several enhancements to the fine-grained Personal Access Token (PAT) creation experience, aimed at making it more developer-friendly and efficient.
Key Updates
-
New Permissions Picker UI: The PAT creation and edit pages now feature a redesigned permissions picker, modeled after the custom roles permission picker. It uses a tabbed UI to display selected permissions by resource type (account, repository, or organization), and supports search functionality for quickly finding permissions. The improved state management ensures that your selected permissions are saved when switching between different resource owners or repositories.
-
Template URLs with Query Parameters: Developers can now prefill PAT details using query parameters in the URL, enabling the creation and sharing of token templates. This feature allows users to save time and reduce errors when generating tokens with common configurations. It addresses previous feedback regarding the complexity of picking the right permissions by allowing reusable, shareable URLs.
-
Developer Workflow Examples:
Technical Details
- The new permissions picker enhances usability for managing fine-grained tokens and supports future enhancements such as improved API and description search, and extended integration with GitHub Copilot for fuzzy matching.
- The query parameter feature supports various token detail fields, from permissions and resource scopes to token lifetime, making it easier to reproduce or share token configurations among team members.
- These improvements will also be available in GitHub Enterprise Server 3.20.
For more information and documentation, see Managing your personal access tokens.
Developers are encouraged to give feedback and participate in further discussion on GitHub Community Announcements.
This post appeared first on “The GitHub Blog”. Read the entire article here