GitHub Action runner in Amazon CodeBuild - Amazon CodeBuild
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

GitHub Action runner in Amazon CodeBuild

A GitHub Action is an action that is specifically developed for use with GitHub workflows. For details about GitHub Actions, see the GitHub Actions documentation.

There are two ways to use GitHub Actions with CodeBuild:

  • You can configure your project to set up self-hosted GitHub Actions runners in CodeBuild containers to process your GitHub Actions workflow jobs.

  • You can use a CodeBuild-managed action runner to run GitHub Actions within CodeBuild.

You can choose to set up self-hosted GitHub Actions runners in CodeBuild. This involves setting up a webhook using your CodeBuild project, and updating your GitHub Actions workflow YAML to use self-hosted runners hosted on CodeBuild machines. This allows your GitHub Actions workflow jobs to get native integration with Amazon.

You can also choose to use a CodeBuild-managed action runner to run GitHub Actions within CodeBuild. This involves adding steps to your buildspec using GitHub Actions syntax, which run in a separate phase from CodeBuild commands. This allows your GitHub Actions to integrate with CodeBuild features, such as dependency caching and batch builds.