---
id: change/al-go/2407
type: change
title: "#2407 Enable AL-Go for GitHub on GitHub Enterprise Cloud with data residency"
summary: AL-Go for GitHub now supports GitHub Enterprise Cloud with dynamic host resolution, automatically using the correct GitHub server and API URLs instead of hardcoded references to github.com.
tier: official
language: en
tags:
  - feature
  - main
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-10-24T00:37:49.985Z"
  flags: []
generated:
  at: "2026-10-23T22:03:43.080Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: cd94b78ed3f766d8ceb959f1d713cc06e120a036
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2407
    title: "microsoft/AL-Go#2407: Enable AL-Go for GitHub on GitHub Enterprise Cloud with data residency"
    date: "2026-10-22"
    commit: cd94b78ed3f766d8ceb959f1d713cc06e120a036
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2407
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2407
kind: pr
base_branch: main
major: null
merged_at: "2026-10-22T09:20:50Z"
author: freddydk
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 27
  additions: 375
  deletions: 110
  al: 17
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/AL-Go-Helper.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/CheckForUpdates/CheckForUpdates.HelperFunctions.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/CheckForUpdates/CheckForUpdates.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/Deploy/Deploy.psm1
    status: modified
    reason: not-in-snapshot
  - path: Actions/DetermineProjectsToBuild/DetermineProjectsToBuild.Action.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/DetermineProjectsToBuild/DetermineProjectsToBuild.psm1
    status: modified
    reason: not-in-snapshot
  - path: Actions/DownloadProjectDependencies/DownloadProjectDependencies.psm1
    status: modified
    reason: not-in-snapshot
  - path: Actions/GetArtifactsForDeployment/GetArtifactsForDeployment.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/GetArtifactsForDeployment/GetArtifactsForDeployment.psm1
    status: modified
    reason: not-in-snapshot
  - path: Actions/Github-Helper.psm1
    status: modified
    reason: not-in-snapshot
  - path: Actions/PullRequestStatusCheck/PullRequestStatusCheck.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/VerifyPRChanges/VerifyPRChanges.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/WorkflowPostProcess/WorkflowPostProcess.ps1
    status: modified
    reason: not-in-snapshot
  - path: Templates/AppSource App/.AL-Go/localDevEnv.ps1
    status: modified
    reason: not-in-snapshot
  - path: Templates/AppSource App/.github/workflows/CreateRelease.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/Per Tenant Extension/.AL-Go/localDevEnv.ps1
    status: modified
    reason: not-in-snapshot
  - path: Templates/Per Tenant Extension/.github/workflows/CreateRelease.yaml
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - platform
  - development
quote: null
joined_against:
  major: null
  commit: null
---

# #2407 Enable AL-Go for GitHub on GitHub Enterprise Cloud with data residency

> AL-Go for GitHub now supports GitHub Enterprise Cloud with dynamic host resolution, automatically using the correct GitHub server and API URLs instead of hardcoded references to github.com.

[Pull request](https://github.com/microsoft/AL-Go/pull/2407) · merged into `main` on 2026-10-22 by freddydk · 27 files (+375 -110), 17 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Scripts and workflows now use GITHUB_SERVER_URL and GITHUB_API_URL environment variables for all GitHub API calls
- GH_HOST environment variable is set for gh CLI commands to target the correct host on GitHub Enterprise
- New scenario guide documents how to use AL-Go for GitHub on GitHub Enterprise, including setup and best practices
- Template repository download logic improved to construct API URLs correctly for both public GitHub and GitHub Enterprise
- AL-Go for GitHub workflow explicitly verified to only run on github.com, preventing unsupported usage on GitHub Enterprise for the main repository
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/AL-Go-Helper.ps1`: modified, not in the BC? snapshot
- `Actions/CheckForUpdates/CheckForUpdates.HelperFunctions.ps1`: modified, not in the BC? snapshot
- `Actions/CheckForUpdates/CheckForUpdates.ps1`: modified, not in the BC? snapshot
- `Actions/Deploy/Deploy.psm1`: modified, not in the BC? snapshot
- `Actions/DetermineProjectsToBuild/DetermineProjectsToBuild.Action.ps1`: modified, not in the BC? snapshot
- `Actions/DetermineProjectsToBuild/DetermineProjectsToBuild.psm1`: modified, not in the BC? snapshot
- `Actions/DownloadProjectDependencies/DownloadProjectDependencies.psm1`: modified, not in the BC? snapshot
- `Actions/GetArtifactsForDeployment/GetArtifactsForDeployment.ps1`: modified, not in the BC? snapshot
- `Actions/GetArtifactsForDeployment/GetArtifactsForDeployment.psm1`: modified, not in the BC? snapshot
- `Actions/Github-Helper.psm1`: modified, not in the BC? snapshot
- `Actions/PullRequestStatusCheck/PullRequestStatusCheck.ps1`: modified, not in the BC? snapshot
- `Actions/VerifyPRChanges/VerifyPRChanges.ps1`: modified, not in the BC? snapshot
- `Actions/WorkflowPostProcess/WorkflowPostProcess.ps1`: modified, not in the BC? snapshot
- `Templates/AppSource App/.AL-Go/localDevEnv.ps1`: modified, not in the BC? snapshot
- `Templates/AppSource App/.github/workflows/CreateRelease.yaml`: modified, not in the BC? snapshot
- `Templates/Per Tenant Extension/.AL-Go/localDevEnv.ps1`: modified, not in the BC? snapshot
- `Templates/Per Tenant Extension/.github/workflows/CreateRelease.yaml`: modified, not in the BC? snapshot

## Context

- Systems: platform, development

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
