Description
gh aw v0.86.2 cannot produce runnable agentic workflow lockfiles for GitHub Enterprise Server instances that require artifact action v3. Both repository configuration (.github/workflows/aw.json with "ghes": true) and gh aw compile --ghes still emit actions/upload-artifact@v7.0.1 and actions/download-artifact@v8.0.1.
Those actions fail on GHES with GHESNotSupportedError before the agent runs.
Steps to Reproduce
- Use a GHES repository whose Actions artifact backend does not support
@actions/artifact v2.0.0+.
- Set
"ghes": true in .github/workflows/aw.json.
- Compile an agentic workflow with
gh aw compile --ghes --validate.
- Dispatch the generated workflow.
Expected Behavior
GHES compatibility mode should emit artifact action versions supported by the target GHES instance, or clearly reject unsupported GHES versions/configurations before producing a runnable-looking lockfile.
Actual Behavior
The compiler emits v7/v8 artifact actions. The generated workflow reaches activation and fails at Upload activation artifact with:
GHESNotSupportedError: @actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES.
Environment
- gh-aw: v0.86.2
- GHES: 3.21.3
- Runner: self-hosted Linux ARC runner
- Engine: Copilot
Investigation
Requested Resolution
Please restore a supported, explicit compatibility path for GHES instances requiring v3 artifact actions, or add target-version detection and fail compilation with a clear actionable error. The documentation should state the supported GHES version range and the absence of a compatible emitted lockfile where applicable.
Additional Context
Investigation and redaction of this report were AI-assisted.
Description
gh awv0.86.2 cannot produce runnable agentic workflow lockfiles for GitHub Enterprise Server instances that require artifact action v3. Both repository configuration (.github/workflows/aw.jsonwith"ghes": true) andgh aw compile --ghesstill emitactions/upload-artifact@v7.0.1andactions/download-artifact@v8.0.1.Those actions fail on GHES with
GHESNotSupportedErrorbefore the agent runs.Steps to Reproduce
@actions/artifactv2.0.0+."ghes": truein.github/workflows/aw.json.gh aw compile --ghes --validate.Expected Behavior
GHES compatibility mode should emit artifact action versions supported by the target GHES instance, or clearly reject unsupported GHES versions/configurations before producing a runnable-looking lockfile.
Actual Behavior
The compiler emits v7/v8 artifact actions. The generated workflow reaches activation and fails at
Upload activation artifactwith:Environment
Investigation
ghes-artifact-compat, which emitted v3 artifact actions and closed gh aw compile emits artifact actions unsupported on GHES #29551.Requested Resolution
Please restore a supported, explicit compatibility path for GHES instances requiring v3 artifact actions, or add target-version detection and fail compilation with a clear actionable error. The documentation should state the supported GHES version range and the absence of a compatible emitted lockfile where applicable.
Additional Context
Investigation and redaction of this report were AI-assisted.