Github
GitHub is a code hosting and version control platform for developers to collaborate on software projects.
Website
Industry
Website
Share this article:

How to set a maximum lifetime for fine-grained personal access tokens in your GitHub organization

Here is how to set a maximum lifetime for fine-grained personal access tokens in your github organization

  1. First click on your profile picture in the top-right corner of the header
  2. Next click on "Organizations" in the dropdown menu
  3. Click on the "Settings" button next to the organization
  4. In the left sidebar, click on "Personal access tokens" under the Third-party Access section
  5. Click on "Settings" submenu under Personal access tokens
  6. Click on the "Fine-grained tokens" tab
  7. Next scroll down to the "Set maximum lifetimes for personal access tokens" section
  8. Then check the "Fine-grained personal access tokens must expire" checkbox to enable it
  9. Next set the maximum lifetime
  10. Finally click on the "Save" button to save the changes

Create your own interactive guide with Guideflow

Why should you set a maximum lifetime for fine-grained personal access tokens in your GitHub organization

GitHub is a prominent platform that enables seamless collaboration and code sharing in the software development community.

Setting a maximum lifetime for fine-grained personal access tokens in your GitHub organization enhances security by controlling token longevity. This feature empowers admins to mitigate risks by ensuring that tokens do not remain active longer than necessary.

Implementing this feature helps reduce potential exposure to unauthorized access while promoting an environment of compliance and safety within your organization.

Last update
April 15, 2026
Cursor MariaA cursor points to a button labeled "James."

Create your first demo in less than 30 seconds.