Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs: adds app-connection docs for github PAT
Piyush Guptab0aa005e66f0
diff --git a/docs/images/app-connections/github/create-pat-form.png b/docs/images/app-connections/github/create-pat-form.pngnew file mode 100644index 0000000000..cc8abdf15cBinary files /dev/null and b/docs/images/app-connections/github/create-pat-form.png differdiff --git a/docs/images/app-connections/github/create-pat-method.png b/docs/images/app-connections/github/create-pat-method.pngnew file mode 100644index 0000000000..eec811705cBinary files /dev/null and b/docs/images/app-connections/github/create-pat-method.png differdiff --git a/docs/images/app-connections/github/create-pat-token-generated.png b/docs/images/app-connections/github/create-pat-token-generated.pngnew file mode 100644index 0000000000..430e676719Binary files /dev/null and b/docs/images/app-connections/github/create-pat-token-generated.png differdiff --git a/docs/images/app-connections/github/pat-connection.png b/docs/images/app-connections/github/pat-connection.pngnew file mode 100644index 0000000000..802ed4e38bBinary files /dev/null and b/docs/images/app-connections/github/pat-connection.png differdiff --git a/docs/images/integrations/github/integrations-github-config-new-pat.png b/docs/images/integrations/github/integrations-github-config-new-pat.pngnew file mode 100644index 0000000000..11766edfdbBinary files /dev/null and b/docs/images/integrations/github/integrations-github-config-new-pat.png differdiff --git a/docs/integrations/app-connections/github.mdx b/docs/integrations/app-connections/github.mdxindex e44fc405a9..2d3e2f5a0c 100644--- a/docs/integrations/app-connections/github.mdx+++ b/docs/integrations/app-connections/github.mdx@@ -3,7 +3,7 @@ title: "GitHub Connection"description: "Learn how to configure a GitHub Connection for Infisical."----Infisical supports two methods for connecting to GitHub.+Infisical supports three methods for connecting to GitHub.<Tabs><Tab title="GitHub App (Recommended)">@@ -178,5 +178,73 @@ Infisical supports two methods for connecting to GitHub.</Step></Steps></Tab>+ <Tab title="Personal Access Token">+ Infisical will use a Personal Access Token to connect to GitHub.++ <Accordion title="Self-Hosted Instance">+ Using the GitHub integration on a self-hosted instance of Infisical requires creating a Personal Access Token in GitHub.+ <Steps>+ <Step title="Create a Personal Access Token in GitHub">+ Navigate to your user Settings > Developer settings > Personal Access Tokens to create a new Personal Access Token.++ + + ++ Click **Generate new token** to create the token.+ </Step>+ <Step title="Fill in the Personal Access Token details">+ Fill in the Personal Access Token details:+ - **Token name:** A descriptive name for the token (e.g., "infisical-connection-token")+ - **Repository access:** Select the repositories you want to grant access to+ - Select `All repositories` or `Only selected repositories` to be able to manage the secrets in the selected repositories.+ - **Select scopes:** Add the following scopes:+ - Metadata: Read-only+ - Environments: Read and write++ ++ Click **Generate token** to create the token.+ </Step>+ <Step title="Copy the Personal Access Token">+ Copy the generated token immediately as it won't be shown again.++ ++ <Warning>+ Keep your Personal Access Token secure and do not share it. Anyone with access to this token can access your GitHub account and repositories.+ </Warning>+ </Step>+ </Steps>+ </Accordion>++ ## Setup GitHub Connection in Infisical++ <Steps>+ <Step title="Navigate to App Connections">+ Navigate to the **App Connections** page in the desired project.+ + </Step>+ <Step title="Add Connection">+ Select the **GitHub Connection** option from the connection options modal.+ + </Step>+ <Step title="Authorize Connection">+ Select the **Personal Access Token** method and fill in the **Personal Access Token** field with your Personal Access Token.++ You may optionally configure GitHub Enterprise options:+ - **Gateway:** The gateway connected to your private network+ - **Hostname:** The hostname at which to access your GitHub Enterprise instance++ Click **Create Connection**.++ + </Step>+ <Step title="Connection Created">+ Your **GitHub Connection** is now available for use.+ + </Step>+ </Steps>+ </Tab></Tabs>