Skip to content

For teams with more than one repo

GitHub Actions secrets, without copy-pasting into every repo.

GitHub's built-in Secrets work until you have ten repos with the same DATABASE_URL in each. With Envshed, your workflow pulls the current secrets at run time, and every repo reads from the same organization. You change a value once.

With more than one repo and more than one environment, GitHub repository secrets need updates in many places. You update a key and forget which workflows need it. Organization secrets help, but only inside one GitHub org. With Envshed, workflows fetch the current values at job start. A secret you rotate is live on the next run, with no redeploy and no per-repo clicks.

Where GitHub Actions secrets fail

  • A Stripe key lives in 12 repos' Secrets tabs

    Rotating it means 12 PRs, or 12 browser tabs clicked in sequence. By key three, you have stopped double-checking.

  • Environments collapse into prefixed names

    STAGING_DATABASE_URL and PROD_DATABASE_URL share the same Secrets tab. One day someone copies the prod value into staging's slot, and staging writes to production for six hours.

  • CI log redaction is not a security boundary

    GitHub redacts known secret values in logs, but screenshots, downstream services, and cached build artifacts are not protected by a log filter.

One service token in GitHub. Everything else in Envshed

Envshed can scope a service token to a single environment. Your workflow authenticates with that token at job start, and envshed run injects the secrets into the process. The token sits in GitHub Secrets once. Every other value rotates in Envshed and reaches every workflow on the next run.

A minimal Actions job

One token in GitHub. Every other secret in Envshed.

terminal
# .github/workflows/deploy.yml
- name: Install Envshed CLI
  run: npm install -g envshed
- name: Deploy with production secrets
  env:
    ENVSHED_TOKEN: ${{ secrets.ENVSHED_PRODUCTION_TOKEN }}
  run: envshed run --env production -- pnpm deploy

What changes when you adopt this

  1. One token per environment

    A token scoped to staging cannot read production. Revoking it blocks access at once, and every workflow using it fails on its next run.

  2. Rotation without PRs

    Change a value in the Envshed dashboard. The next workflow run picks it up. No repo changes, no re-deploys of the workflow file.

  3. Read-only by default in CI

    A service token gets read permission unless you choose read_write. Machine tokens and OIDC sessions are always read-only.

What you get

  • Service tokens scoped to an organization, a project, or one environment
  • envshed run --env production -- <cmd> injects values into one child process, no temp files
  • Service token reads in the audit log with a [Service Token] label, IP, and time
  • GitHub OIDC sessions that last at most one hour and need no stored token
  • Machine tokens for CI work on every plan, including the $0 Developer plan

GitHub Actions questions

  • Does this replace GitHub Actions Secrets entirely?

    Almost. You still store one Envshed token in GitHub Secrets, or none with OIDC. The dozens of individual secrets move into Envshed, where you can version, rotate, and audit them.

  • What if my workflow runs on self-hosted runners?

    Same CLI, same token flow. The runner needs outbound HTTPS access to app.envshed.com to pull values.

  • Does envshed run leak values into logs?

    No. envshed run injects values into the child process and does not print them. With --redact, it replaces any value your command prints with [ENVSHED:KEY_NAME]. With --oidc, that masking is on by default.

  • Can I use GitHub OIDC instead of a long-lived token?

    Yes. With envshed run --oidc and a trust policy id, the job trades its GitHub ID token for a read-only session of up to one hour. Envshed matches repository_id and repository_owner_id and refuses events such as pull_request_target.

Give your Actions workflows one place to read secrets from

Store the service token in GitHub Secrets. Everything else lives in Envshed.

Start free

Part of the Envshed.