Skip to content

gh aw compile emits artifact actions unsupported on GHES #29551

Closed

Description

@fchareyr

Description

gh aw compile currently emits generated workflow lock files that use recent artifact actions which are not supported by GitHub Enterprise Server artifact APIs.

In a GHES repository, compiling gh-aw workflows with gh-aw v0.71.1 produced generated .lock.yml workflows containing:

actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1

When the workflow runs on GHES, the generated Upload activation artifact step fails with:

GHESNotSupportedError: @actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES.

This makes compiled gh-aw workflows unusable on GHES instances where artifact actions v4+ are unsupported, even when the rest of the GHES/Copilot setup is working.

Steps to Reproduce

  1. On a GitHub Enterprise Server repository, install/use gh aw version v0.71.1.

  2. Compile one or more gh-aw workflows, for example:

    gh aw compile --strict --validate --approve --purge
  3. Inspect the generated .github/workflows/*.lock.yml files.

  4. Run one of the generated workflows on GHES.

Expected Behavior

The compiler should support producing GHES-compatible generated workflows. For artifact upload/download, this could be one of:

  • emit GHES-compatible artifact action versions when compiling for GHES;
  • provide a documented compile/frontmatter/repository setting to select GHES-compatible artifact actions;
  • provide an action-version override mechanism for internally generated actions such as upload-artifact and download-artifact.

For this GHES environment, existing non-gh-aw workflows successfully use:

actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf # v3.2.2
actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2

Actual Behavior

The compiler emits actions/[email protected] and actions/[email protected] in generated lock files. These versions use @actions/artifact v2.0.0+, which fails on GHES with GHESNotSupportedError.

Editing .github/aw/actions-lock.json alone does not appear to be a viable workaround: the compiler still writes the v7/v8 artifact refs into generated .lock.yml files.

Environment

  • gh-aw: v0.71.1
  • GHES: 3.19.1
  • Runner: self-hosted Linux runner
  • Engine: Copilot with GHES configuration
  • Compile command: gh aw compile --strict --validate --approve --purge

Additional Context

The GHES-specific gh CLI configuration documented at https://github.github.com/gh-aw/setup/cli/#configuring-gh-cli-on-ghes helps route gh API calls to the enterprise host, but it does not affect generated artifact action versions.

A documented GHES-compatible artifact action mode would avoid requiring users to manually patch generated .lock.yml files after every compile.

Disclosure: This issue was drafted with help from GitHub Copilot.

Activity

  1. locked and limited conversation to collaborators on May 1, 2026
  2. unlocked this conversation on May 1, 2026
  3. added 2 commits that reference this issue on May 12, 2026
    d887f47
    9b8d0da
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions