> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plerion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub

> Integrate Plerion Code Security with GitHub to scan repositories for infrastructure as code (IaC) issues and software composition analysis (SCA) issues directly in your development workflow.

With the [GitHub integration](https://app.plerion.com/settings/integrations/add/GitHub/GitHub), you can connect your repositories to Plerion Code Security. This enables automatic scanning for IaC and SCA issues, giving developers early feedback and helping teams resolve issues before they reach production.

***

## Steps to integrate GitHub with Plerion

<Steps>
  <Step title="On the Plerion dashboard, go to Settings > Integrations">
    <Frame>
      <img src="https://mintcdn.com/pleriondocs/4bl2G33Rpn-gjitb/images/integrations/github/settings-integrations-sidenav.png?fit=max&auto=format&n=4bl2G33Rpn-gjitb&q=85&s=4f28542511913dc33a4bc9118b6a0bb9" alt="Plerion dashboard showing Settings expanded with Integrations selected" width="655" height="853" data-path="images/integrations/github/settings-integrations-sidenav.png" />
    </Frame>
  </Step>

  <Step title="Find GitHub and click the + button">
    <Frame>
      <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/github/add-github-integration.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=88cdd49e26e64d6a590bd84f9d5358a8" alt="Add a GitHub integration" width="717" height="704" data-path="images/integrations/github/add-github-integration.png" />
    </Frame>
  </Step>

  <Step title="Click on Install GitHub app">
    <Frame>
      <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/github/install-github-app.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=2f71329e93b81174e01d5c75cd74f2b0" alt="Install GitHub app option in Plerion" width="1496" height="530" data-path="images/integrations/github/install-github-app.png" />
    </Frame>
  </Step>

  <Step title="Select the repositories to monitor and click Install">
    <Frame>
      <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/github/install.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=8d73223b9397ca74472e1deaeb905976" alt="GitHub installation screen showing repository selection" width="988" height="1144" data-path="images/integrations/github/install.png" />
    </Frame>
  </Step>

  <Step title="After installation, you will be redirected to the Plerion platform">
    <Frame>
      <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/github/integration-page.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=f01171bdb0694bcc3d7580d084fd2499" alt="Plerion integration page showing GitHub connected" width="1422" height="1151" data-path="images/integrations/github/integration-page.png" />
    </Frame>
  </Step>
</Steps>

## Configuring your GitHub integration

Once installed, you can configure the GitHub integration to suit your workflows. These options control when and how scans run, how findings are handled, and what rules apply.

### Integration status

Controls whether Plerion Code Security is active.

* **Default**: Enabled
* **When disabled**: Pauses all scanning activities, including scheduled and pull request scans
* **Recommendation**: Keep enabled unless there is a specific need to pause

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/github/integration-status.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=a22a61e30a2473781079a587253594d6" alt="Integration status toggle in Plerion" width="795" height="117" data-path="images/integrations/github/integration-status.png" />
</Frame>

### Scheduled scans

Runs automatic daily scans of your main branches.

* **Default**: Enabled
* **Purpose**: Ensures continuous monitoring of production-ready code
* **Key points**:
  * No manual input required
  * Helps identify risks over time
  * Best for stable branches

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/github/scheduled-scans.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=2fe8ee6bc6eb4fb999185b9252612e2e" alt="Scheduled scans configuration in Plerion" width="791" height="102" data-path="images/integrations/github/scheduled-scans.png" />
</Frame>

### Pull request scanning

Scans code in new and updated pull requests.

* **Default**: Enabled
* **What it does**:
  * Scans only changes in the pull request
  * Posts findings as comments in GitHub
  * Uses GitHub status checks to block insecure merges
* **Supported file types**: YAML, Terraform, JSON, and other IaC files
* **Why it matters**: Prevents vulnerabilities from merging, encourages secure practices, and improves developer awareness

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/github/pull-request-scanning.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=3aa1783c90bd6eb0cb6a21a73e76e2c0" alt="Pull request scanning configuration in Plerion" width="803" height="93" data-path="images/integrations/github/pull-request-scanning.png" />
</Frame>

### Tolerance for blocking pull requests

Controls when pull requests are blocked based on severity.

* **Default**: Do not block pull requests
* **Options**:
  * Only block for critical findings
  * Block for high and critical findings
  * Block for medium and above findings
  * Block for any finding
  * Do not block pull requests
* **Best use**: Choose based on your team’s risk tolerance, development velocity, and compliance needs

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/github/tolerance-configuration.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=5f8f735741e120606c01f53c26c8f13b" alt="Tolerance configuration options in Plerion" width="809" height="123" data-path="images/integrations/github/tolerance-configuration.png" />
</Frame>

### Profile

Defines which detection rules are used during scans.

* **Default**: Organization’s default profile
* **Options**: Use an existing profile or create a new one
* **Where to manage**: Detection Settings
* **Best use**: Align with coding standards, risk tolerance, and compliance needs

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/github/profile.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=aaaa73e4d5d58ba81b4017d92febfe0b" alt="Profile selection in Plerion GitHub integration" width="726" height="100" data-path="images/integrations/github/profile.png" />
</Frame>

### Workflow artifact scanning

Scan GitHub workflow artifacts for security issues.

* **Default**: Disabled
* **What it does**:
  * Scans GitHub workflow artifacts uploaded within a pull request
  * Posts findings as comments in GitHub
  * Uses GitHub status checks to block insecure merges
* **Supported frameworks**: AWS CDK (Cloud Development Kit), AWS Serverless Application Model (SAM), OpenTofu, and other frameworks that generate a CloudFormation template or a Terraform plan before deployment
* **Why it matters**: Allows scanning a wider range of IaC framework files for security issues before merging pull requests

<Frame>
  <img src="https://mintcdn.com/pleriondocs/cDo5n9-B2MHMGGJD/images/integrations/github/workflow-artifact-scanning.png?fit=max&auto=format&n=cDo5n9-B2MHMGGJD&q=85&s=19855cb058b2c59365a2c23e3e3e9011" alt="Workflow artifact scanning configuration in Plerion" width="1536" height="212" data-path="images/integrations/github/workflow-artifact-scanning.png" />
</Frame>

### SAST scanning

Scan your source code for security vulnerabilities using static application security testing (SAST).

* **Default**: Disabled
* **What it does**:
  * Analyzes source code for common vulnerability patterns such as injection flaws, insecure cryptography, and hardcoded secrets
  * Reports findings in the Plerion platform alongside IaC and SCA findings
* **Supported languages**: TypeScript, JavaScript, Python, Go, Java, Kotlin, Ruby, PHP, C#, C, C++, Rust, Swift, and Scala
* **Why it matters**: Catches application-layer vulnerabilities earlier in the development lifecycle, before code reaches production

<Frame>
  <img src="https://mintcdn.com/pleriondocs/0_l8tHVxVuubN4jn/images/integrations/github/sast-scanning.png?fit=max&auto=format&n=0_l8tHVxVuubN4jn&q=85&s=aad2cc86c622ce1e458efb7c48301005" alt="SAST scanning configuration in Plerion" width="915" height="96" data-path="images/integrations/github/sast-scanning.png" />
</Frame>

### Code to cloud

Connect GitHub repositories to the AWS resources they deploy and manage.

* **Default**: Enabled
* **What it does**:
  * Automatically links deployed AWS resources to the GitHub repository that created them
  * Surfaces the source repository on each asset’s detail page in the Plerion platform
* **Supported deployment methods**: CloudFormation, AWS CDK, and Terraform (via GitHub Actions)
* **Works with**: Successful workflow runs on the default branch only
* **Why it matters**: When a security finding surfaces, you can see exactly which repository needs to be fixed — no manual mapping required

<Frame>
  <img src="https://mintcdn.com/pleriondocs/AuNl8cloVWqzb8pY/images/integrations/github/code-to-cloud.png?fit=max&auto=format&n=AuNl8cloVWqzb8pY&q=85&s=1d78e93fdd3bfc539d6db664de03d132" alt="Code to cloud configuration in Plerion" width="756" height="103" data-path="images/integrations/github/code-to-cloud.png" />
</Frame>

## Best practices

* Keep the integration enabled for continuous coverage
* Use scheduled scans to secure long-term branches
* Enable PR scanning to prevent insecure code from merging
* Set PR blocking tolerance based on your security posture
* Select a detection profile that matches your organization’s needs
* Enable SAST scanning to catch application-layer vulnerabilities earlier in the development lifecycle
* Enable Code to cloud to trace deployed resources back to their source repository
