Alternatively, you can use Infisical’s official GitHub Action here.

Infisical lets you sync secrets to GitHub at the organization-level, repository-level, and repository environment-level.

1

Authorize GitHub Infisical App

Navigate to your project’s integrations tab in Infisical and press on the GitHub tile.

integrations

Select GitHub App as the authentication method and click Connect to GitHub.

integrations github app auth selection

You will then be redirected to the GitHub app installation page.

integrations github app installation

Install and authorize the GitHub application. This will redirect you back to the Infisical integration page.

2

Configure Infisical GitHub integration

Select which Infisical environment secrets you want to sync to which GitHub organization, repository, or repository environment.

integrations github

Finally, press create integration to start syncing secrets to GitHub.

integrations github

Connecting with GitHub OAuth

Prerequisites:

  • Set up and add envars to Infisical Cloud
  • Ensure that you have admin privileges to the repository you want to sync secrets to.
1

Authorize Infisical for GitHub

Navigate to your project’s integrations tab in Infisical and press on the GitHub tile. integrations

Select OAuth as the authentication method and click Connect to GitHub. integrations github oauth auth selection

Grant Infisical access to your GitHub account (organization and repo privileges). integrations github authorization

2

Configure Infisical GitHub integration

Select which Infisical environment secrets you want to sync to which GitHub organization, repository, or repository environment.

integrations github

Finally, press create integration to start syncing secrets to GitHub.

integrations github