Github Tokens for branches

Hey Doppler team!

I’m deploying my repo to multi place (operating as mono-repo) and I need granularity for each of those deployments. However with Github I can only sync 1 secret key instead of multiple doppler keys. I’ve manually created a STAGING_DOPPLER_SECRET and synced the production once by default but it would be great to sync multiple ‘branch’ secret. You could append the branch name to the env variable? Something like PROD_WORKERS_DOPPLER_SECRET or whatever.

Cheers!

Hi Alex,

This is a great idea! We have documentation (GitHub Actions) on how to add multiple repo syncs, but we agree it is better if we support in the dashboard integration. We’ll take a look at what the best approach is here to support multiple tokens. Stay tuned!

Best,

Ruud

Hi Alex,

We implemented this feature request. Now, if you setup a GitHub integration we will postfix the DOPPLER_TOKEN with the config that is being synced. So for instance: DOPPLER_TOKEN_CI.

Note: we are going to change our GitHub integration where we sync every secret to GitHub. This will make it easier to use environment variables in your github actions and don’t require installing the CLI anymore. If you still wanna use 2 different environments, you can still use the service token approach.

Cheers,

Ruud