Skip to main content
In this guide, you’ll learn how to enable GitHub Actions workflows on a self-hosted GitHub Enterprise Server to consume Marketplace actions. By default, Enterprise Server workflows only use actions stored on the instance. To extend this capability, you can integrate with GitHub.com or selectively import actions.
The image features a blue gradient background with the text "Distributing Actions for an Enterprise Server" in the center. It also includes a copyright notice for KodeKloud in the bottom left corner.

Built-in Actions on Enterprise Server

When you set up GitHub Enterprise Server, it pre-bundles a snapshot of core Marketplace actions—such as Checkout and upload/download artifact actions. You can browse these on your instance:
Each action lives in its own repository under the actions organization, complete with tags, branches, and commits.
Pre-bundled actions are static snapshots captured at installation time. If you need newer versions or third-party actions, use one of the methods below.

Handling External Action Dependencies

Imagine a workflow requiring:
  • actions/checkout@v2 (pre-bundled)
  • azure-cli@v2.5 (not pre-bundled)
Without internet access, azure-cli@v2.5 can’t be fetched. You have two options:

Option 1: GitHub Connect

GitHub Connect links your Enterprise Server to GitHub Enterprise Cloud. Once enabled, workflows can reference all Marketplace actions while you enforce Action Policies to approve or block specific actions.
After configuring GitHub Connect, approved public actions resolve automatically without additional steps.

Option 2: Selective Sync with actions-sync

For air-gapped or highly controlled environments, use the actions-sync CLI to pull and import only the action versions you need.
  1. Install actions-sync.
  2. Sync an action version:
  3. Reference the synced action in your workflow:
Always pin to a specific version when syncing with actions-sync. This prevents unintended updates and maintains workflow stability.

Summary

By leveraging GitHub Connect or the actions-sync tool, you can distribute Marketplace actions to your GitHub Enterprise Server while enforcing security policies and compliance.

Watch Video

Practice Lab