Metadata-Version: 2.1
Name: cloudsnorkel.cdk-github-runners
Version: 1.1.1
Summary: CDK construct to create GitHub Actions self-hosted runners. Creates ephemeral runners on demand. Easy to deploy and highly customizable.
Home-page: https://github.com/CloudSnorkel/cdk-github-runners.git
Author: Amir Szekely<amir@cloudsnorkel.com>
License: Apache-2.0
Project-URL: Source, https://github.com/CloudSnorkel/cdk-github-runners.git
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: JavaScript
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aws-cdk-lib<3.0.0,>=2.261.0
Requires-Dist: constructs<11.0.0,>=10.5.1
Requires-Dist: jsii<2.0.0,>=1.142.0
Requires-Dist: publication>=0.0.3

# GitHub Self-Hosted Runners CDK Constructs

[![NPM](https://img.shields.io/npm/v/@cloudsnorkel/cdk-github-runners?label=npm&logo=npm)](https://www.npmjs.com/package/@cloudsnorkel/cdk-github-runners)
[![PyPI](https://img.shields.io/pypi/v/cloudsnorkel.cdk-github-runners?label=pypi&logo=pypi)](https://pypi.org/project/cloudsnorkel.cdk-github-runners)
[![Maven Central](https://img.shields.io/maven-central/v/com.cloudsnorkel/cdk.github.runners.svg?label=Maven%20Central&logo=apachemaven)](https://central.sonatype.com/artifact/com.cloudsnorkel/cdk.github.runners/)
[![Go](https://img.shields.io/github/v/tag/CloudSnorkel/cdk-github-runners?color=red&label=go&logo=go)](https://pkg.go.dev/github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners)
[![Nuget](https://img.shields.io/nuget/v/CloudSnorkel.Cdk.Github.Runners?color=red&&logo=nuget)](https://www.nuget.org/packages/CloudSnorkel.Cdk.Github.Runners/)
[![Release](https://github.com/CloudSnorkel/cdk-github-runners/actions/workflows/release.yml/badge.svg)](https://github.com/CloudSnorkel/cdk-github-runners/actions/workflows/release.yml)
[![Discord](https://img.shields.io/badge/Discord-5865F2?logo=discord&logoColor=white)](https://discord.gg/vdrTUTqQKv)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/CloudSnorkel/cdk-github-runners/blob/main/LICENSE)
[![awesome-runners](https://img.shields.io/badge/listed%20on-awesome--runners-blue.svg)](https://github.com/jonico/awesome-runners)

Use this CDK construct to create ephemeral [self-hosted GitHub runners](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners) on-demand inside your AWS account.

* 🛡️ Battle tested in production since 2022, from small teams to large organizations
* 📈 Scales to hundreds of runner types and as many runners as your AWS quotas allow, with serverless orchestration
* 🧩 Easy to configure GitHub integration with a web-based interface
* 🧠 Customizable runners with decent defaults
* 🏃🏻 Multiple runner configurations controlled by labels
* 🔐 Everything fully hosted in your account
* 🔃 Automatically updated build environment with latest runner version

Self-hosted runners in AWS are useful when:

* You need easy access to internal resources in your actions
* You want to pre-install some software for your actions
* You want to provide some basic AWS API access (but [aws-actions/configure-aws-credentials](https://github.com/marketplace/actions/configure-aws-credentials-action-for-github-actions) has more security controls)
* You are using GitHub Enterprise Server (3.10 or newer, as runners are registered with [just-in-time configurations](https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-just-in-time-runners))

Ephemeral (or on-demand) runners are the [recommended way by GitHub](https://docs.github.com/en/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners#using-ephemeral-runners-for-autoscaling) for auto-scaling, and they make sure all jobs run with a clean image. Runners are started on-demand. You don't pay unless a job is running.

## Documentation

Everything you need is on **[ghr.cloudsnorkel.com](https://ghr.cloudsnorkel.com)**, with code in TypeScript, Python, Java, C# and Go.

* [Getting Started](https://ghr.cloudsnorkel.com/guide/getting-started)
* [Providers](https://ghr.cloudsnorkel.com/guide/providers)
* [Customizing](https://ghr.cloudsnorkel.com/guide/customizing)
* [Security](https://ghr.cloudsnorkel.com/guide/security)
* [Compliance](https://ghr.cloudsnorkel.com/guide/compliance)
* [Monitoring](https://ghr.cloudsnorkel.com/guide/monitoring)
* [Cost](https://ghr.cloudsnorkel.com/guide/cost)
* [Troubleshooting](https://ghr.cloudsnorkel.com/guide/troubleshooting)
* [API Reference](https://ghr.cloudsnorkel.com/api/)

## Demo

[![Demo](demo-thumbnail.jpg)](https://youtu.be/wlyv_3V8lIw)

## Getting Help

Need help? We're here for you!

* 💬 **GitHub Discussions**: Ask questions, share ideas, or get help from the community by opening a [discussion](https://github.com/CloudSnorkel/cdk-github-runners/discussions)
* 🐛 **GitHub Issues**: Report bugs or request features by opening an [issue](https://github.com/CloudSnorkel/cdk-github-runners/issues)
* 💬 **Discord**: Join our [Discord community](https://discord.gg/vdrTUTqQKv) for real-time help and discussions

## Contributing

If you use and love this project, please consider contributing.

1. 🪳 If you see something, say something. [Issues](https://github.com/CloudSnorkel/cdk-github-runners/issues) help improve the quality of the project.

   * Include relevant logs and package versions for bugs.
   * When possible, describe the use-case behind feature requests.
2. 🛠️ [Pull requests](https://github.com/CloudSnorkel/cdk-github-runners/pulls) are welcome.

   * Run `npm run build` before submitting to make sure all tests pass.
   * Allow edits from maintainers so small adjustments can be made easily.
3. 💵 Consider [sponsoring](https://github.com/sponsors/CloudSnorkel) the project to show your support and optionally get your name listed below.

## Sponsors

Thanks to our generous sponsors who helped make this project possible!

<table>
  <tr>
    <td align="center">
      <a href="https://github.com/threat-down">
        <img src="https://github.com/threat-down.png?size=100" width="100" height="100" alt="ThreatDown" />
        <br />
        <sub><b>ThreatDown</b></sub>
      </a>
    </td>
    <td align="center">
      <a href="https://github.com/magicbell">
        <img src="https://github.com/magicbell.png?size=100" width="100" height="100" alt="MagicBell" />
        <br />
        <sub><b>MagicBell</b></sub>
      </a>
    </td>
    <td align="center">
      <a href="https://github.com/fragment-dev">
        <img src="https://github.com/fragment-dev.png?size=100" width="100" height="100" alt="Fragment" />
        <br />
        <sub><b>Fragment</b></sub>
      </a>
    </td>
    <td align="center">
      <a href="https://github.com/qnicondavid">
        <img src="https://github.com/qnicondavid.png?size=100" width="100" height="100" alt="Nicon-David Milandru" />
        <br />
        <sub><b>Nicon-David Milandru</b></sub>
      </a>
    </td>
    <td align="center">
      <a href="https://github.com/andresionek91">
        <img src="https://github.com/andresionek91.png?size=100" width="100" height="100" alt="Andre Sionek" />
        <br />
        <sub><b>Andre Sionek</b></sub>
      </a>
    </td>
  </tr>
</table>

## Other Options

1. [github-aws-runners/terraform-aws-github-runner](https://github.com/github-aws-runners/terraform-aws-github-runner) if you're using Terraform
2. [actions/actions-runner-controller](https://github.com/actions/actions-runner-controller) if you're using Kubernetes
