GitHub Agentic Workflows

Enterprise Configuration

This page covers configuration options specific to GitHub Enterprise Server (GHES) and GitHub Enterprise Cloud (GHEC) deployments.

GitHub Enterprise Server (GHES) Compatibility

Section titled “GitHub Enterprise Server (GHES) Compatibility”

GHES instances running versions that predate @actions/artifact v2.0.0 support cannot use actions/upload-artifact@v4+ or actions/download-artifact@v4+. Attempting to run compiled workflows on these instances produces a GHESNotSupportedError.

gh-aw includes a GHES compatibility mode that instructs the compiler to emit upload-artifact@v3.2.2 and download-artifact@v3.1.0 instead of the latest v4+ versions.

Set ghes: true in .github/workflows/aw.json to apply GHES compatibility to every workflow compiled in the repository:

{
"ghes": true
}

Running gh aw init inside a GHES repository automatically detects the deployment and writes ghes: true to .github/workflows/aw.json. No manual configuration is required.

Pass --ghes to gh aw compile for a one-off compilation without modifying aw.json:

Terminal window
gh aw compile --ghes my-workflow.md

For gh CLI configuration, host authentication, and GH_HOST setup on GHES, see GitHub Enterprise Server Support in the CLI reference.

For Copilot-specific prerequisites, licensing requirements, and firewall configuration on GHES, see Copilot Engine Prerequisites on GHES.