---
id: change/al-go/2331
type: change
title: "#2331 Support trackALAlertsInGitHub for workspace compilation build path"
summary: AL-Go now produces error log files during workspace compilation when GitHub code scanning alerts are enabled, allowing AL compiler diagnostics to surface as code scanning alerts in the workspace build path.
tier: official
language: en
tags:
  - feature
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:03.746Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ea3c4b753cda4cc6b3aa9d2e39a6e7244c25c3aa
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2331
    title: "microsoft/AL-Go#2331: Support trackALAlertsInGitHub for workspace compilation build path"
    date: "2026-08-13"
    commit: ea3c4b753cda4cc6b3aa9d2e39a6e7244c25c3aa
    t: null
    quote: AL-Go passes `--errorlogdirectory` to `altool workspace compile` so each project emits an `*.errorLog.json` diagnostics file
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2331
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2331
kind: pr
base_branch: main
major: null
merged_at: "2026-08-13T13:20:59Z"
author: aholstrup1
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 4
  additions: 182
  deletions: 1
  al: 2
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/.Modules/CompileFromWorkspace.psm1
    status: modified
    reason: not-in-snapshot
  - path: Actions/CompileApps/Compile.ps1
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - development
  - platform
quote: AL-Go passes `--errorlogdirectory` to `altool workspace compile` so each project emits an `*.errorLog.json` diagnostics file
joined_against:
  major: null
  commit: null
---

# #2331 Support trackALAlertsInGitHub for workspace compilation build path

> AL-Go now produces error log files during workspace compilation when GitHub code scanning alerts are enabled, allowing AL compiler diagnostics to surface as code scanning alerts in the workspace build path.

[Pull request](https://github.com/microsoft/AL-Go/pull/2331) · merged into `main` on 2026-08-13 by aholstrup1 · 4 files (+182 -1), 2 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Error log directory argument passed to altool workspace compile when trackALAlertsInGitHub is enabled
- Each project generates errorLog.json diagnostics file into .buildartifacts/ErrorLogs/ folder
- Gracefully skips --errorlogdirectory if compiler does not support it with a warning
- Matches existing behavior from classic Run-AlPipeline build path
- Tests and release notes added
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/.Modules/CompileFromWorkspace.psm1`: modified, not in the BC? snapshot
- `Actions/CompileApps/Compile.ps1`: modified, not in the BC? snapshot

## Context

- Systems: development, platform
- From the description: "AL-Go passes `--errorlogdirectory` to `altool workspace compile` so each project emits an `*.errorLog.json` diagnostics file"

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).
