GitHub Action runner in AWS CodeBuild - AWS CodeBuild

GitHub Action runner in AWS 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 AWS.

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.