Key RobotStart free

GitHub Actions secrets: the rotation habits that actually stick

Updated October 2026

GitHub Actions can hold your secrets. It has no built-in way to rotate them on a schedule. That gap is not a bug. It is just not the job the feature was built for, and most teams quietly assume it is covered when it is not.

What GitHub Actions actually does

GitHub's own documentation on using secrets covers creating encrypted secrets at the repository, environment and organization level, and reading them into a workflow run. There is no mention of rotation, expiry or a reminder system anywhere in that page. Secrets sit there, encrypted, until someone changes them by hand.

That is a reasonable scope for the feature. A secrets store does not need to rotate itself to do its job well. The mistake is assuming it does, because the word "secrets" sounds like it should include that.

The habits that actually make rotation happen

Since nothing in GitHub Actions nudges you, the habit has to come from somewhere else.

None of these habits are hard individually. What makes them stick is removing the part where a person has to remember on a specific day, because that is the part that fails first.

What's actually safe to change mid-run

A GitHub Actions secret is read fresh each time a workflow runs. There is no long-lived process holding the old value the way a server process might cache a database password at startup. That means updating a secret's value is low-risk on its own. The risk is entirely in whether every place that secret also lives outside GitHub, your hosting provider's environment variables, a teammate's local file, got updated at the same time. See how to rotate every key without breaking your app for that part of the process.

Where this leaves a solo developer or small team

Writing rotation dates into secret names and tying rotation to an existing recurring event is a real improvement over nothing. It still depends on someone doing it. The honest next step past habits is automating the part GitHub Actions doesn't cover: generating the new secret, testing it, and retiring the old one, on a schedule, without the habit depending on anyone's memory.

Key Robot runs as a scheduled job inside your own GitHub Actions and does exactly that for the services it supports. It makes a new key, checks your app still works with it, and deletes the old one, at least once a week. If the check fails, it puts the old key back automatically. The one exception is Turso, which cannot bring an old token back, so there the robot keeps the new token and tells you. Our own test kit runs 8 checks on every service we support before it ships, and it caught a bug in our own code where Kill it now kept a leaked secret working as a backup value. We fixed it before launch, which is the exact kind of mistake a habit alone would not have caught.

Today this covers 16 services, including OpenAI, AWS, Stripe webhooks, Neon and Supabase, for apps on Netlify, Vercel, Render, Railway or Cloudflare Workers. Keys are locked in your browser before anything is sent, saved as encrypted GitHub Actions secrets in your own account, never on Key Robot's own server. Free for one app, no card.

See the full rotate hub for the manual steps per service, or what to do if a secret already leaked if that's why you're here.

Questions

Does GitHub Actions rotate encrypted secrets automatically?

No. GitHub Actions stores encrypted secrets and lets your workflows read them, but it has no built-in feature that rotates, expires or reminds you about a secret on a schedule.

How do I even know which secrets are old?

GitHub does not show you a secret's value or a creation-to-last-updated age in the UI the way IAM shows access key age. The honest fix is tracking rotation dates yourself, outside GitHub, or using a tool that does.

Can I rotate a GitHub Actions secret without breaking a running workflow?

Yes, if you update the secret value and confirm the next workflow run succeeds before you consider the old value gone. Secrets are read fresh on each run, so there is no live process holding the old value the way a running server might.