1 minute reading time


GitHub - Add-ons

GitHub

Auto-build encrypted .env.vault file. Generate a PR on GitHub when a development environment variable is changed.

It can become a chore to run npx dotenv-vault build each time you are ready to deploy new secret changes. Let GitHub do it for you with this automation add-on.

Instructions

Step1

Navigate to the add-ons tab. Click GitHub. Then click Add and follow the prompts.

Step2

You will be redirect to GitHub’s website. Follow the OAuth flow.

That completes the steps to authorize Dotenv with GitHub.

Step3

The last step is to select the organization and repository. Choose your organization from the dropdown and enter the full the url of your GitHub repository.

Then set the base branch. In most cases, this is master or main.

Once that is complete, you will receive a generated pull request on that repository. It will look something like this:

That’s it!

Each time your team makes a change to an environment variable, GitHub will generate a pull request with the latest built .env.vault file.