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
- Navigate to the Connectors Tab: Log in to the StackGuardian Platform and navigate to the "Connectors" tab.
- Connect to GitHub: Click on "Connect to GitHub" You will be redirected to github.com
- Install the StackGuardian GitHub App: On GitHub, you will see a screen with an Install button. Click on it to start the installation process.
- Select Repositories: Follow the instructions to allow access to selected repositories or all repositories within your GitHub organization or user account.
- 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
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.