Idea: Support AL-Go for GitHub Enterprise #2200
Replies: 5 comments
-
|
The repository is located on a self-hosted GitHub Enterprise Server? Could you also try rerunning in debug mode and include the logs for that? That should include a bit more logging information.
|
Beta Was this translation helpful? Give feedback.
-
|
Hi, @aholstrup1 It's hosted on .ghe.com , but the runner is self-hosted. Here are the full logs in debug mode. If it helps i've tried theGHWORKFLOWTOKEN with the Github App and a PAT ( it resulted in the same error ) |
Beta Was this translation helpful? Give feedback.
-
|
We just started looking into AL-GO for github also with Github Enterprise (hosted on ghe.com). This is one of the actions that also gives issues out of the box for me. @ChrisChristophers How did you change the flow for Powershell Functions: FindLatestSuccessfulCICDRun and PullRequestStatusCheck, which seem to have hardcoded values for Github.com? |
Beta Was this translation helpful? Give feedback.
-
|
We have not changed any workflow since we are just in the process of setting this up. What we did do is mirror the AL-GO-PTE repo in our org and used that as a template but it did not solve the problem. |
Beta Was this translation helpful? Give feedback.
-
|
GitHub Enterprise isn't something we currently support in AL-Go. At this time, we are building and testing AL-Go exclusively towards GitHub.com. In order to support GitHub Enterprise, we'd also need to be able to test AL-Go in a GitHub Enterprise instance to ensure that we don't break functionality whenever we release a new version of AL-Go. Unfortunately, this isn't a setup we have right now which is why we can't support it at this time. Of course, that doesn't mean that we'll never support it. If this is something you'd like to see supported, I would encourage you to upvote this idea (#1999) as well as adding any context any context you feel is missing on the idea. That will help us assess whether this is something we should prioritize 👍 |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
AL-Go version
8.1
Describe the issue
When running the "Update AL-Go System Files" workflow (
CheckForUpdatesaction), the workflowfails with a 404 error when attempting to retrieve the latest commit SHA from the template repository
https://github.com/microsoft/AL-Go-PTE@main.The full error message is:
Stack trace points to:
GetLatestTemplateShainCheckForUpdates.HelperFunctions.ps1: line 83DownloadTemplateRepositoryinCheckForUpdates.HelperFunctions.ps1: line 56CheckForUpdates.ps1: line 64Environment details:
5628b94ecf2f1f06fd6eed86e25027a60ae93ab6)https://github.com/microsoft/AL-Go-PTE@main2b0291277622df06df2856bc05768be2ebb5a6b5workflow_dispatchwithdirectCommit=falseanddownloadLatest=trueNote: The repository calling this workflow is hosted on GitHub Enterprise Server (GHES), which
may be relevant if the
GetLatestTemplateShafunction uses API calls that require specificauthentication for accessing public github.com repositories from a GHES instance.
Expected behavior
The "Update AL-Go System Files" workflow should successfully retrieve the latest commit SHA from the
microsoft/AL-Go-PTEtemplate repository on github.com, compare it with the storedtemplateSha,and either update the AL-Go system files or report that no update is needed — completing the workflow
without errors.
Steps to reproduce
AL-Go v8.1.
templateUrlashttps://github.com/microsoft/AL-Go-PTE@mainin.github/AL-Go-Settings.jsonor.AL-Go/settings.json.ghTokenWorkflowsecret (GitHub App or PAT).workflow_dispatchwith:directCommit: falsedownloadLatest: trueGetLatestTemplateSha.Additional context (logs, screenshots, etc.)
Relevant log excerpt from the
CheckForUpdatesstep:Note: Prior to reaching the template, the workflow successfully accessed the template repository
to verify it exists (HTTP 200 with empty content). The 404 occurs specifically when calling
GetLatestTemplateSha, suggesting the API endpoint used to resolve the branch/SHA may differ fromthe initial check.
Beta Was this translation helpful? Give feedback.
All reactions