Skip to content

Developers

Push secrets to GitHub, GitLab or Vercel

Copy a project’s secrets into your CI provider without pasting them by hand.

  1. Sign in with the CLI.
  2. Create a token at your provider and put it in an environment variable:
  • GitHub: GITHUB_TOKEN (needs permission to write Actions secrets)
  • GitLab: GITLAB_TOKEN (scope api)
  • Vercel: VERCEL_TOKEN
  1. Preview first, then push:
keyvalt ci push github --repo acme/web --project "My app" --env production --dry-run
keyvalt ci push github --repo acme/web --project "My app" --env production
keyvalt ci push gitlab --repo group/web --project "My app" --env production
keyvalt ci push vercel --repo web --project "My app" --env production --target production,preview
  • GitHub: add --ci-env production to save to a GitHub environment.
  • Values go straight from your computer to the provider. KeyValt only records that a push happened (provider, repository, number of values).