Skip to content

This will run the new self-hosted github actions runners with docker-in-docker

License

Notifications You must be signed in to change notification settings

privacy-com/docker-github-actions-runner

 
 

Repository files navigation

Docker Github Actions Runner - Lithic Edition

A dockerized action runner based on myoung34/docker-github-actions-runner with minimal tweaks to support Lithic workflows. The project is covered in more detail in privacy-com/pulumi-github-actions-runner

Main differences from original repo

  • Runners are uniquely named with a UUID suffix
  • A GitHub PAT is passed into the container to set up .gitconfig
  • Additional packages installed to support builds

Notes

This is a public repo, and sensitive values should be handled accordingly. Right now that is being done via GitHub Secrets.

Included below are some caveats to using this runner in workflows, duplicated from the original repo.

Security

It is known that currently tokens (ACCESS_TOKEN / RUNNER_TOKEN ) are not safe from exfiltration. If you are using this runner make sure that any workflow changes are gated by a verification process (in the actions settings) so that malicious PR's cannot exfiltrate these.

Docker Support

Please note that while this runner installs and allows docker, github actions itself does not support using docker from a self hosted runner yet. For more information:

Also, some GitHub Actions Workflow features, like Job Services, won't be usable and will result in an error.

Containerd Support

Currently runners do not support containerd

***LINK TO DOCKER IMAGE LIST HERE ***

Examples

Note

If you're using a RHEL based OS with SELinux, add --security-opt=label=disable to prevent permission denied

Usage From GH Actions Workflow

name: Package

on:
  release:
    types: [created]

jobs:
  build:
    runs-on: self-hosted
    steps:
    - uses: actions/checkout@v1
    - name: build packages
      run: make all

About

This will run the new self-hosted github actions runners with docker-in-docker

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 66.0%
  • Dockerfile 34.0%