mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 17:27:40 +00:00
Update github integrations docs based on diff scope
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 691 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 709 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 715 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 398 KiB After Width: | Height: | Size: 178 KiB |
@@ -5,14 +5,26 @@ description: "How to sync secrets from Infisical to GitHub Actions"
|
|||||||
|
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab title="Usage">
|
<Tab title="Usage">
|
||||||
<Warning>
|
Infisical provides a different way to sync secrets to GitHub that can be used in Github Actions workflows.
|
||||||
Infisical can sync secrets to GitHub repo secrets only. If your repo uses environment secrets, then stay tuned with this [issue](https://github.com/Infisical/infisical/issues/54).
|
You can sync secrets to the following GitHub scopes:
|
||||||
</Warning>
|
|
||||||
|
|
||||||
Prerequisites:
|
- Repository
|
||||||
|
- Github Organization
|
||||||
|
- Repository Environment
|
||||||
|
|
||||||
|
|
||||||
|
<Info>
|
||||||
|
To know more about usage and limitation of secrets in GitHub Actions, please visit the [Official Github documentation](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions).
|
||||||
|
</Info>
|
||||||
|
|
||||||
|
|
||||||
|
#### Prerequisites:
|
||||||
- Set up and add envars to [Infisical Cloud](https://app.infisical.com)
|
- Set up and add envars to [Infisical Cloud](https://app.infisical.com)
|
||||||
- Ensure you have admin privileges to the repo you want to sync secrets to.
|
- Ensure you have admin privileges to the repository you want to sync secrets to.
|
||||||
|
- For Organizations only,
|
||||||
|
- During the oAuth ensure you gave access to the respective Organization.
|
||||||
|
- For Environment only
|
||||||
|
- Require access to the repository and create the environment under repository settings if it doesn't exist.
|
||||||
|
|
||||||
<Steps>
|
<Steps>
|
||||||
<Step title="Authorize Infisical for GitHub">
|
<Step title="Authorize Infisical for GitHub">
|
||||||
@@ -29,12 +41,35 @@ description: "How to sync secrets from Infisical to GitHub Actions"
|
|||||||
Although this step breaks E2EE, it's necessary for Infisical to sync the environment variables to the cloud platform.
|
Although this step breaks E2EE, it's necessary for Infisical to sync the environment variables to the cloud platform.
|
||||||
</Info>
|
</Info>
|
||||||
</Step>
|
</Step>
|
||||||
<Step title="Start integration">
|
<Step title="Configure Infisical GitHub integration">
|
||||||
Select which Infisical environment secrets you want to sync to which GitHub repo and press start integration to start syncing secrets to the repo.
|
- Select Source Project Environment that needs to be synced ( Development, Staging or Production )
|
||||||
|
- Enter Secret path ( Default to root folder `/`)
|
||||||
|
- Select a scope ( Repository, Organization, Repository Environment ) based on the scope of the repository you want to sync secrets to.
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<Tab title="Repository">
|
||||||
|
- Select one or more repositories to sync secrets to.
|
||||||
|
|
||||||
|

|
||||||
|
</Tab>
|
||||||
|
<Tab title="Organization">
|
||||||
|
- Select the organization to sync secrets to.
|
||||||
|

|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
<Tab title="Repository Environment">
|
||||||
|
- Select the repository
|
||||||
|
- Select the target environment you want to sync secrets to. if you can't find the environment, create one under repository settings > Environments > New environment and try again.
|
||||||
|

|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
|
- Once configured, press on the "Create Integration" button.
|
||||||
|
|
||||||

|

|
||||||
</Step>
|
</Step>
|
||||||
</Steps>
|
</Steps>
|
||||||
|
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab title="Self-Hosted Setup">
|
<Tab title="Self-Hosted Setup">
|
||||||
Using the GitHub integration on a self-hosted instance of Infisical requires configuring an OAuth application in GitHub
|
Using the GitHub integration on a self-hosted instance of Infisical requires configuring an OAuth application in GitHub
|
||||||
@@ -70,6 +105,6 @@ description: "How to sync secrets from Infisical to GitHub Actions"
|
|||||||
Once added, restart your Infisical instance and use the GitHub integration.
|
Once added, restart your Infisical instance and use the GitHub integration.
|
||||||
</Step>
|
</Step>
|
||||||
</Steps>
|
</Steps>
|
||||||
|
|
||||||
</Tab>
|
</Tab>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user