You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How long is a token created by create-github-app-token expected to last? It appears that it only lasts 1 hour so our longer Conan builds start failing to fetch repositories after 1 hour.
Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of 401 - Unauthorized, and requires creating a new installation token.
which shows that this can't be customized or refreshed.
Yes your findings are correct, the token expires after one hour, the time cannot be extended.
I wonder what the best place would be to document that, you are not the first to ask about it.
We could also add a log message 🤔 I'm open to suggestions
I would recommend adding it either as a subsection of the "How it Works" section or in a newer "Token Expiration" or "Notes" section at the end.
Here's my best shot at a wording:
This action generates an API token that lasts for 1 hour and cannot be renewed. For more information on this limitation, you can refer to the documentation for the underlying GitHub API that this action uses. Using this token after expiration will result in a 401 - Unauthorized error.
Activity
grossag commentedon Apr 16, 2024
Actually I may have found my answer. https://docs.github.com/en/enterprise-cloud@latest/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app says:
which shows that this can't be customized or refreshed.
gr2m commentedon Apr 16, 2024
Yes your findings are correct, the token expires after one hour, the time cannot be extended.
I wonder what the best place would be to document that, you are not the first to ask about it.
We could also add a log message 🤔 I'm open to suggestions
[-]Document expiration time of token and whether that can be customized[/-][+]Clarify expiration of created token[/+]grossag commentedon Apr 16, 2024
I would recommend adding it either as a subsection of the "How it Works" section or in a newer "Token Expiration" or "Notes" section at the end.
Here's my best shot at a wording:
Yang-33 commentedon Mar 29, 2025
#141 updated README, so can we close this issue? @grossag @gr2m
grossag commentedon Mar 31, 2025
Yes, thanks!