Token generated by runner becoming invalid mid run #202131
Replies: 2 comments 2 replies
-
|
💬 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. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
If you need a token that can last longer or be refreshed, you can generate one using a custom GitHub App. Since the one you are using has a 1 hour span. You can use the official helper action to generate a token during the run: - name: Generate Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Or smthing like that then I think you're good. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Actions Runner
Discussion Details
Github token generated by GH hosted actions runner is becoming invalid mid run about 1hr into a job. My job checks token validity at various points in the script being run and the token seems to consistently become invalid after about an hour. Its happening on both linux and macos runners.
Beta Was this translation helpful? Give feedback.
All reactions