For the complete StackGuardian documentation index, see llms.txt. An extended version with full page content is available at llms-full.txt.
Skip to main content

GitHub

Overview

Integrating StackGuardian with GitHub allows you to leverage Infrastructure and Policy as Code from your private repositories. By configuring a VCS (Version Control System), you can fetch the latest IaC (Infrastructure as Code) or Policy code during your workflow runtime. This document provides step-by-step instructions on how to set up the GitHub integration.

Setting up GitHub Connector

  1. Navigate to the Connectors Tab: Log in to the StackGuardian Platform and navigate to the "Connectors" tab.
  2. Connect to GitHub: Click on "Connect to GitHub" You will be redirected to github.com
  3. Install the StackGuardian GitHub App: On GitHub, you will see a screen with an Install button. Click on it to start the installation process.
  4. Select Repositories: Follow the instructions to allow access to selected repositories or all repositories within your GitHub organization or user account.
  5. Complete Installation: After granting permissions, you will be redirected back to the StackGuardian Platform. You should now see a VCS Connector named "github_com" in the Connectors tab.

When installation is complete you will be redirected back to StackGuardian Platform and you should see a VCS Connector named "github_com" in Connectors tab.


Successful GitHub Connector

Successful GitHub Connector

You can configure VCS triggers to automatically run workflows in response to GitHub events such as pushes, pull requests, and tag creation. See Workflow triggers.