Skip to content

Commit 383acf0

Browse files
authored
Merge branch 'main' into main
2 parents 0a243a3 + 6ce99a8 commit 383acf0

11 files changed

Lines changed: 52 additions & 21 deletions

File tree

‎.github/workflows/CI.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- name: Harden Runner
3232
if: github.repository_owner == 'microsoft'
33-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
33+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
3434
with:
3535
egress-policy: audit
3636

‎.github/workflows/CleanupTempRepos.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- name: Harden Runner
2929
if: github.repository_owner == 'microsoft'
30-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
30+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
3131
with:
3232
egress-policy: audit
3333

‎.github/workflows/Deploy.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
steps:
5555
- name: Harden Runner
5656
if: github.repository_owner == 'microsoft'
57-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
57+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
5858
with:
5959
egress-policy: audit
6060

@@ -87,7 +87,7 @@ jobs:
8787
steps:
8888
- name: Harden Runner
8989
if: github.repository_owner == 'microsoft'
90-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
90+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
9191
with:
9292
egress-policy: audit
9393

@@ -129,7 +129,7 @@ jobs:
129129
steps:
130130
- name: Harden Runner
131131
if: github.repository_owner == 'microsoft'
132-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
132+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
133133
with:
134134
egress-policy: audit
135135

‎.github/workflows/E2E.yaml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
steps:
5959
- name: Harden Runner
6060
if: github.repository_owner == 'microsoft'
61-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
61+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
6262
with:
6363
egress-policy: audit
6464

@@ -120,7 +120,7 @@ jobs:
120120
steps:
121121
- name: Harden Runner
122122
if: github.repository_owner == 'microsoft'
123-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
123+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
124124
with:
125125
egress-policy: audit
126126

@@ -155,7 +155,7 @@ jobs:
155155
steps:
156156
- name: Harden Runner
157157
if: github.repository_owner == 'microsoft'
158-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
158+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
159159
with:
160160
egress-policy: audit
161161

@@ -281,7 +281,7 @@ jobs:
281281
steps:
282282
- name: Harden Runner
283283
if: github.repository_owner == 'microsoft'
284-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
284+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
285285
with:
286286
egress-policy: audit
287287

@@ -318,7 +318,7 @@ jobs:
318318
steps:
319319
- name: Harden Runner
320320
if: github.repository_owner == 'microsoft'
321-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
321+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
322322
with:
323323
egress-policy: audit
324324

@@ -355,7 +355,7 @@ jobs:
355355
steps:
356356
- name: Harden Runner
357357
if: github.repository_owner == 'microsoft'
358-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
358+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
359359
with:
360360
egress-policy: audit
361361

@@ -404,7 +404,7 @@ jobs:
404404
steps:
405405
- name: Harden Runner
406406
if: github.repository_owner == 'microsoft'
407-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
407+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
408408
with:
409409
egress-policy: audit
410410

@@ -453,7 +453,7 @@ jobs:
453453
steps:
454454
- name: Harden Runner
455455
if: github.repository_owner == 'microsoft'
456-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
456+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
457457
with:
458458
egress-policy: audit
459459

‎.github/workflows/StaleIssues.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
issues: write
1313

1414
steps:
15-
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
15+
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
1616
with:
1717
stale-issue-label: 'stale'
1818
days-before-issue-stale: 180

‎.github/workflows/powershell.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- name: Harden Runner
2424
if: github.repository_owner == 'microsoft'
25-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
25+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
2626
with:
2727
egress-policy: audit
2828

@@ -38,6 +38,6 @@ jobs:
3838

3939
# Upload the SARIF file generated in the previous step
4040
- name: Upload SARIF results file
41-
uses: github/codeql-action/upload-sarif@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
41+
uses: github/codeql-action/upload-sarif@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
4242
with:
4343
sarif_file: results.sarif

‎.github/workflows/pre-commit.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- name: Harden Runner
1717
if: github.repository_owner == 'microsoft'
18-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
18+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
1919
with:
2020
egress-policy: audit
2121

‎.github/workflows/scorecard-analysis.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Harden Runner
2121
if: github.repository_owner == 'microsoft'
22-
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
22+
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
2323
with:
2424
egress-policy: audit
2525

@@ -37,6 +37,6 @@ jobs:
3737

3838
# Upload the results to GitHub's code scanning dashboard.
3939
- name: "Upload to code-scanning"
40-
uses: github/codeql-action/upload-sarif@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
40+
uses: github/codeql-action/upload-sarif@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
4141
with:
4242
sarif_file: results.sarif

‎Actions/CompileApps/Compile.ps1‎

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ try {
5656
}
5757

5858
# Check for precompile and postcompile overrides
59-
$scriptOverrides = Get-ScriptOverrides -ALGoFolderName (Join-Path $projectFolder ".AL-Go") -OverrideScriptNames @("PreCompileApp", "PostCompileApp")
59+
$scriptOverrides = Get-ScriptOverrides -ALGoFolderName (Join-Path $projectFolder ".AL-Go") -OverrideScriptNames @("PreCompileApp", "PostCompileApp", "PreNewBcCompilerFolder", "PostNewBcCompilerFolder")
6060
$scriptOverrides.Keys | ForEach-Object { Trace-Information -Message "Using override for $_" }
6161

6262
# Prepare build metadata
@@ -103,7 +103,27 @@ try {
103103
# On GitHub-hosted runners, use a folder in the runner temp directory for caching to speed up subsequent builds
104104
$cacheFolder = Join-Path $ENV:RUNNER_TEMP ".artifactcache"
105105
}
106-
$compilerFolder = New-BcCompilerFolder -artifactUrl $artifact -vsixFile $settings.vsixFile -containerName "$($containerName)compiler" -cacheFolder $cacheFolder
106+
107+
$newCompilerFolderParameters = @{
108+
artifactUrl = $artifact
109+
vsixFile = $settings.vsixFile
110+
containerName = "$($containerName)compiler"
111+
cacheFolder = $cacheFolder
112+
}
113+
114+
# Run PreNewBcCompilerFolder hook if available (can modify parameters)
115+
if ($scriptOverrides['PreNewBcCompilerFolder']) {
116+
& $scriptOverrides['PreNewBcCompilerFolder'] -parameters $newCompilerFolderParameters
117+
}
118+
119+
# Create the compiler folder
120+
$compilerFolder = New-BcCompilerFolder @newCompilerFolderParameters
121+
122+
# Run PostNewBcCompilerFolder hook if available
123+
if ($scriptOverrides['PostNewBcCompilerFolder']) {
124+
& $scriptOverrides['PostNewBcCompilerFolder'] -parameters $newCompilerFolderParameters -compilerFolder $compilerFolder
125+
}
126+
107127
$packageCachePath = Join-Path $compilerFolder "symbols"
108128

109129
# Copy dependency apps and test apps to the package cache so the compiler can resolve them

‎RELEASENOTES.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
When compiling apps with the workspace compiler, AL-Go now reads the `dotNetVersion` from the BC artifact's `manifest.json` (copied into the compiler folder by BcContainerHelper) and selects an installed .NET runtime whose major version matches. This avoids version drift between the build agent's highest installed runtime and the platform the artifact was built against. If the manifest does not declare a `dotNetVersion`, or no installed runtime matches the required major, versioned .NET assembly probing paths are omitted (a warning is logged in the latter case).
44

5+
### New compiler folder hooks
6+
7+
Two new hooks are available for customizing the compiler folder creation process when workspace compilation is enabled:
8+
9+
- **PreNewBcCompilerFolder.ps1** - Runs before `New-BcCompilerFolder` is called. Receives a `[hashtable] $parameters` argument containing the parameters that will be passed to `New-BcCompilerFolder`. The script can modify the hashtable in-place to customize the compiler folder creation (e.g., add a `platformArtifactUrl` to use a specific platform version).
10+
- **PostNewBcCompilerFolder.ps1** - Runs after the compiler folder is created. Receives `[hashtable] $parameters` and `[string] $compilerFolder` arguments.
11+
12+
Place these scripts in your project's `.AL-Go` folder to use them.
13+
514
### New AL-Go hooks (experimental)
615

716
AL-Go for GitHub now supports a new generic hook mechanism that is independent of BcContainerHelper. A new `RunHook` action invokes scripts placed in the project's `.AL-Go` folder at well-known extension points in the workflows. The first such extension point is `BuildInitialize`, which runs in the build workflow immediately after `Read settings` (so AL-Go settings are available as environment variables).

0 commit comments

Comments
 (0)