From ba4fc723e4c024674baa6a53ef1777402cfbaab0 Mon Sep 17 00:00:00 2001 From: bcbuild-github-agent <137281497+bcbuild-github-agent@users.noreply.github.com> Date: Wed, 22 Jan 2025 00:56:34 -0800 Subject: [PATCH] Deploying AL-Go from main (120540b15626528818b0aca52dc4822eb527e5c4) to main (#106) Deploying AL-Go from main (120540b15626528818b0aca52dc4822eb527e5c4) to main Co-authored-by: microsoft --- .AL-Go/cloudDevEnv.ps1 | 6 +- .AL-Go/localDevEnv.ps1 | 6 +- .github/RELEASENOTES.copy.md | 43 ++++++++-- .../workflows/AddExistingAppOrTestApp.yaml | 12 +-- .github/workflows/CICD.yaml | 44 +++++----- .github/workflows/CreateApp.yaml | 12 +-- .../CreateOnlineDevelopmentEnvironment.yaml | 18 ++-- .../workflows/CreatePerformanceTestApp.yaml | 12 +-- .github/workflows/CreateRelease.yaml | 57 +++++++------ .github/workflows/CreateTestApp.yaml | 12 +-- .github/workflows/Current.yaml | 18 ++-- .../DeployReferenceDocumentation.yaml | 10 +-- .github/workflows/IncrementVersionNumber.yaml | 33 ++++--- .github/workflows/NextMajor.yaml | 18 ++-- .github/workflows/NextMinor.yaml | 18 ++-- .github/workflows/PublishToEnvironment.yaml | 24 +++--- .../workflows/PullPowerPlatformChanges.yaml | 12 +-- .github/workflows/PullRequestHandler.yaml | 19 +++-- .../workflows/PushPowerPlatformChanges.yaml | 12 +-- .github/workflows/Troubleshooting.yaml | 2 +- .../workflows/UpdateGitHubGoSystemFiles.yaml | 12 +-- .github/workflows/_BuildALGoProject.yaml | 85 +++++++------------ .../_BuildPowerPlatformSolution.yaml | 8 +- SECURITY.md | 2 +- 24 files changed, 256 insertions(+), 239 deletions(-) diff --git a/.AL-Go/cloudDevEnv.ps1 b/.AL-Go/cloudDevEnv.ps1 index cf0ec90..fbbc52e 100644 --- a/.AL-Go/cloudDevEnv.ps1 +++ b/.AL-Go/cloudDevEnv.ps1 @@ -42,9 +42,9 @@ Write-Host -ForegroundColor Yellow @' $tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())" New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null -$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.3/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.3/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.3/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/.AL-Go/localDevEnv.ps1 b/.AL-Go/localDevEnv.ps1 index 62163dd..c1431bb 100644 --- a/.AL-Go/localDevEnv.ps1 +++ b/.AL-Go/localDevEnv.ps1 @@ -46,9 +46,9 @@ Write-Host -ForegroundColor Yellow @' $tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())" New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null -$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.3/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.3/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.3/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/.github/RELEASENOTES.copy.md b/.github/RELEASENOTES.copy.md index 93e24db..7933b58 100644 --- a/.github/RELEASENOTES.copy.md +++ b/.github/RELEASENOTES.copy.md @@ -1,3 +1,30 @@ +## v6.3 + +### Deprecations + +- `cleanModePreprocessorSymbols` will be removed after April 1st 2025. Use [Conditional Settings](https://aka.ms/algosettings#conditional-settings) instead, specifying buildModes and the `preprocessorSymbols` setting. Read [this](https://aka.ms/algodeprecations#cleanModePreprocessorSymbols) for more information. + +### Issues + +- It is now possible to skip the modification of dependency version numbers when running the Increment Version number workflow or the Create Release workflow + +### New Repository Settings + +- [`shortLivedArtifactsRetentionDays`](https://aka.ms/algosettings#shortLivedArtifactsRetentionDays) determines the number of days to keep short lived build artifacts (f.ex build artifacts from pull request builds, next minor or next major builds). 1 is default. 0 means use GitHub default. +- [`preProcessorSymbols`](https://aka.ms/algosettings#preProcessorSymbols) is a list of preprocessor symbols to use when building the apps. This setting can be specified in [workflow specific settings files](https://aka.ms/algosettings#where-are-the-settings-located) or in [conditional settings](https://aka.ms/algosettings#conditional-settings). + +### New Versioning Strategy + +Setting versioning strategy to 3 will allow 3 segments of the version number to be defined in app.json and repoVersion. Only the 4th segment (Revision) will be defined by the GitHub [run_number](https://go.microsoft.com/fwlink/?linkid=2217416&clcid=0x409) for the CI/CD workflow. Increment version number and Create Release now also supports the ability to set a third segment to the RepoVersion and appversion in app.json. + +### Change in published artifacts + +When using `useProjectDependencies` in a multi-project repository, AL-Go for GitHub used to generate short lived build artifacts called `thisBuild---...`. This is no longer the case. Instead, normal build artifacts will be published and used by depending projects. The retention period for the short lived artifacts generated are controlled by a settings called [`shortLivedArtifactsRetentionDays`](https://aka.ms/algosettings#shortLivedArtifactsRetentionDays). + +### Preprocessor symbols + +It is now possible to define preprocessor symbols, which will be used when building your apps using the [`preProcessorSymbols`](https://aka.ms/algosettings#preProcessorSymbols) setting. This setting can be specified in workflow specific settings file or it can be used in conditional settings. + ## v6.2 ### Issues @@ -130,7 +157,7 @@ AL-Go for GitHub now includes a new telemetry module. For detailed information o - **NumberOfSqlStmtsWarning** - a warning is issued if the number of SQL statements from a bcpt test increases more than this percentage (default 5) - **NumberOfSqlStmtsError** - an error is issued if the number of SQL statements from a bcpt test increases more than this percentage (default 10) -> \[!NOTE\] +> [!NOTE] > Duration thresholds are subject to varying results depending on the performance of the agent running the tests. Number of SQL statements executed by a test is often the most reliable indicator of performance degredation. ## v5.2 @@ -157,7 +184,7 @@ AL-Go for GitHub now includes a new telemetry module. For detailed information o - **Pull PowerPlatform Changes** for pulling changes from your PowerPlatform development environment into your AL-Go for GitHub repository - **Push PowerPlatform Changes** for pushing changes from your AL-Go for GitHub repository to your PowerPlatform development environment -> \[!NOTE\] +> [!NOTE] > PowerPlatform workflows are only available in the PTE template and will be removed if no PowerPlatformSolutionFolder is defined in settings. ### New Scenarios (Documentation) @@ -167,7 +194,7 @@ AL-Go for GitHub now includes a new telemetry module. For detailed information o - [Try one of the Business Central and Power Platform samples](https://github.com/microsoft/AL-Go/blob/main/Scenarios/TryPowerPlatformSamples.md) - [Publish To AppSource](https://github.com/microsoft/AL-Go/blob/main/Scenarios/PublishToAppSource.md) -> \[!NOTE\] +> [!NOTE] > PowerPlatform functionality are only available in the PTE template. ## v5.1 @@ -305,8 +332,8 @@ AL-Go for GitHub allows you to build and test using insider builds without any e - `enableExternalRulesets`: set this setting to true if you want to allow AL-Go to automatically download external references in rulesets. - `deliverTo`: is not really new, but has new properties and wasn't documented. The complete list of properties is here (note that some properties are deliveryTarget specific): - - **Branches** = an array of branch patterns, which are allowed to deliver to this deliveryTarget. (Default \[ "main" \]) - - **CreateContainerIfNotExist** = *\[Only for DeliverToStorage\]* Create Blob Storage Container if it doesn't already exist. (Default false) + - **Branches** = an array of branch patterns, which are allowed to deliver to this deliveryTarget. (Default [ "main" ]) + - **CreateContainerIfNotExist** = *[Only for DeliverToStorage]* Create Blob Storage Container if it doesn't already exist. (Default false) ### Deployment @@ -347,7 +374,7 @@ Earlier, you could also specify the projects you want to deploy to an environmen - `deployTo`: is not really new, but has new properties. The complete list of properties is here: - **EnvironmentType** = specifies the type of environment. The environment type can be used to invoke a custom deployment. (Default SaaS) - **EnvironmentName** = specifies the "real" name of the environment if it differs from the GitHub environment - - **Branches** = an array of branch patterns, which are allowed to deploy to this environment. (Default \[ "main" \]) + - **Branches** = an array of branch patterns, which are allowed to deploy to this environment. (Default [ "main" ]) - **Projects** = In multi-project repositories, this property can be a comma separated list of project patterns to deploy to this environment. (Default \*) - **SyncMode** = ForceSync if deployment to this environment should happen with ForceSync, else Add. If deploying to the development endpoint you can also specify Development or Clean. (Default Add) - **ContinuousDeployment** = true if this environment should be used for continuous deployment, else false. (Default: AL-Go will continuously deploy to sandbox environments or environments, which doesn't end in (PROD) or (FAT) @@ -405,8 +432,8 @@ Now, you can set the checkbox called Use GhTokenWorkflow to allowing you to use ### New Settings -- `keyVaultCodesignCertificateName`: With this setting you can delegate the codesigning to an Azure Key Vault. This can be useful if your certificate has to be stored in a Hardware Security Module -- `PullRequestTrigger`: With this setting you can set which trigger to use for Pull Request Builds. By default AL-Go will use pull_request_target. +- `keyVaultCodesignCertificateName`: With this setting you can delegate the codesigning to an Azure Key Vault. This can be useful if your certificate has to be stored in a Hardware Security Module +- `PullRequestTrigger`: With this setting you can set which trigger to use for Pull Request Builds. By default AL-Go will use pull_request_target. ### New Actions diff --git a/.github/workflows/AddExistingAppOrTestApp.yaml b/.github/workflows/AddExistingAppOrTestApp.yaml index 6f7547e..9f78b52 100644 --- a/.github/workflows/AddExistingAppOrTestApp.yaml +++ b/.github/workflows/AddExistingAppOrTestApp.yaml @@ -41,7 +41,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -50,18 +50,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -69,7 +69,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Add existing app - uses: microsoft/AL-Go-Actions/AddExistingApp@v6.2 + uses: microsoft/AL-Go-Actions/AddExistingApp@v6.3 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -79,7 +79,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index f556e11..fad1161 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -45,7 +45,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -56,13 +56,13 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell get: type,powerPlatformSolutionFolder,useGitSubmodules @@ -70,7 +70,7 @@ jobs: - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -91,7 +91,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.3 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -104,7 +104,7 @@ jobs: - name: Determine Delivery Target Secrets id: DetermineDeliveryTargetSecrets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.2 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.3 with: shell: powershell projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}' @@ -112,7 +112,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -120,7 +120,7 @@ jobs: - name: Determine Delivery Targets id: DetermineDeliveryTargets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.2 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -130,7 +130,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -146,13 +146,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell get: templateUrl - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.2 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.3 with: shell: powershell templateUrl: ${{ env.templateUrl }} @@ -176,8 +176,6 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} - publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }} signArtifacts: true useArtifactCache: true @@ -218,7 +216,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell @@ -227,7 +225,7 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.2 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.3 with: shell: powershell artifacts: '.artifacts' @@ -264,7 +262,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder @@ -278,7 +276,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} @@ -286,7 +284,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v6.2 + uses: microsoft/AL-Go-Actions/Deploy@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -298,7 +296,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.2 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -326,20 +324,20 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ matrix.deliveryTarget }}Context' - name: Deliver - uses: microsoft/AL-Go-Actions/Deliver@v6.2 + uses: microsoft/AL-Go-Actions/Deliver@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -359,7 +357,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateApp.yaml b/.github/workflows/CreateApp.yaml index 0e1eb3e..300ceb2 100644 --- a/.github/workflows/CreateApp.yaml +++ b/.github/workflows/CreateApp.yaml @@ -51,7 +51,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -60,19 +60,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell get: type - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -80,7 +80,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new app - uses: microsoft/AL-Go-Actions/CreateApp@v6.2 + uses: microsoft/AL-Go-Actions/CreateApp@v6.3 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -94,7 +94,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml index 2e5992c..0ab120d 100644 --- a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml +++ b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml @@ -50,7 +50,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -59,19 +59,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -90,7 +90,7 @@ jobs: Write-Host "AdminCenterApiCredentials not provided, initiating Device Code flow" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient = New-Object System.Net.WebClient - $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.3/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -112,13 +112,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -137,7 +137,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials" - name: Create Development Environment - uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v6.2 + uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v6.3 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -149,7 +149,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreatePerformanceTestApp.yaml b/.github/workflows/CreatePerformanceTestApp.yaml index 8dc7895..73ef29d 100644 --- a/.github/workflows/CreatePerformanceTestApp.yaml +++ b/.github/workflows/CreatePerformanceTestApp.yaml @@ -57,7 +57,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -66,18 +66,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -85,7 +85,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v6.2 + uses: microsoft/AL-Go-Actions/CreateApp@v6.3 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -100,7 +100,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateRelease.yaml b/.github/workflows/CreateRelease.yaml index 5ff505b..2ba5c46 100644 --- a/.github/workflows/CreateRelease.yaml +++ b/.github/workflows/CreateRelease.yaml @@ -16,14 +16,14 @@ on: description: Tag of this release (needs to be semantic version string https://semver.org, ex. 1.0.0) required: true default: '' - prerelease: - description: Prerelease? - type: boolean - default: false - draft: - description: Draft? - type: boolean - default: false + releaseType: + description: Release, prerelease or draft? + type: choice + options: + - Release + - Prerelease + - Draft + default: Release createReleaseBranch: description: Create Release Branch? type: boolean @@ -33,9 +33,13 @@ on: type: string default: release/ updateVersionNumber: - description: New Version Number in main branch. Use Major.Minor for absolute change, use +Major.Minor for incremental change. + description: New Version Number in main branch. Use Major.Minor (optionally add .Build for versioningstrategy 3) for absolute change, or +1, +0.1 (or +0.0.1 for versioningstrategy 3) incremental change. required: false default: '' + skipUpdatingDependencies: + description: Skip updating dependency version numbers in all apps. + type: boolean + default: false directCommit: description: Direct Commit? type: boolean @@ -73,7 +77,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -82,20 +86,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell get: templateUrl,repoName,type,powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -104,12 +108,12 @@ jobs: - name: Determine Projects id: determineProjects - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.3 with: shell: powershell - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.2 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.3 with: shell: powershell templateUrl: ${{ env.templateUrl }} @@ -203,7 +207,7 @@ jobs: - name: Prepare release notes id: createreleasenotes - uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v6.2 + uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v6.3 with: shell: powershell tag_name: ${{ github.event.inputs.tag }} @@ -224,8 +228,8 @@ jobs: tag_name: '${{ github.event.inputs.tag }}', name: '${{ github.event.inputs.name }}', body: bodyMD.replaceAll('\\n','\n').replaceAll('%0A','\n').replaceAll('%0D','\n').replaceAll('%25','%'), - draft: ${{ github.event.inputs.draft=='true' }}, - prerelease: ${{ github.event.inputs.prerelease=='true' }}, + draft: ${{ github.event.inputs.releaseType=='Draft' }}, + prerelease: ${{ github.event.inputs.releaseType=='Prerelease' }}, make_latest: 'legacy', target_commitish: '${{ steps.analyzeartifacts.outputs.commitish }}' }); @@ -245,13 +249,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -289,7 +293,7 @@ jobs: }); - name: Deliver to NuGet - uses: microsoft/AL-Go-Actions/Deliver@v6.2 + uses: microsoft/AL-Go-Actions/Deliver@v6.3 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).nuGetContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -302,7 +306,7 @@ jobs: atypes: 'Apps,TestApps' - name: Deliver to Storage - uses: microsoft/AL-Go-Actions/Deliver@v6.2 + uses: microsoft/AL-Go-Actions/Deliver@v6.3 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).storageContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -346,13 +350,13 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -360,11 +364,12 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Update Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v6.2 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v6.3 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} versionNumber: ${{ github.event.inputs.updateVersionNumber }} + skipUpdatingDependencies: ${{ github.event.inputs.skipUpdatingDependencies }} directCommit: ${{ github.event.inputs.directCommit }} PostProcess: @@ -377,7 +382,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/CreateTestApp.yaml b/.github/workflows/CreateTestApp.yaml index 3c6da24..f469799 100644 --- a/.github/workflows/CreateTestApp.yaml +++ b/.github/workflows/CreateTestApp.yaml @@ -53,7 +53,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -62,18 +62,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -81,7 +81,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v6.2 + uses: microsoft/AL-Go-Actions/CreateApp@v6.3 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -95,7 +95,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Current.yaml b/.github/workflows/Current.yaml index d0c274c..8ed1fa4 100644 --- a/.github/workflows/Current.yaml +++ b/.github/workflows/Current.yaml @@ -26,10 +26,11 @@ jobs: projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} + artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }} telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -40,21 +41,21 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - get: useGitSubmodules + get: useGitSubmodules,shortLivedArtifactsRetentionDays - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -72,10 +73,11 @@ jobs: id: DetermineWorkflowDepth run: | Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)" + Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=$($env:shortLivedArtifactsRetentionDays)" - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.3 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -98,7 +100,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ fromJson(needs.Initialization.outputs.artifactsRetentionDays) }} artifactsNameSuffix: 'Current' PostProcess: @@ -111,7 +113,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/DeployReferenceDocumentation.yaml b/.github/workflows/DeployReferenceDocumentation.yaml index 5fdea14..fe27cb3 100644 --- a/.github/workflows/DeployReferenceDocumentation.yaml +++ b/.github/workflows/DeployReferenceDocumentation.yaml @@ -30,18 +30,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -54,7 +54,7 @@ jobs: uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.2 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.3 with: shell: powershell artifacts: 'latest' @@ -71,7 +71,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/IncrementVersionNumber.yaml b/.github/workflows/IncrementVersionNumber.yaml index a45d19b..bda6764 100644 --- a/.github/workflows/IncrementVersionNumber.yaml +++ b/.github/workflows/IncrementVersionNumber.yaml @@ -10,8 +10,13 @@ on: required: false default: '*' versionNumber: - description: Updated Version Number. Use Major.Minor for absolute change, use +Major.Minor for incremental change. - required: true + description: New Version Number in main branch. Use Major.Minor (optionally add .Build for versioningstrategy 3) for absolute change, or +1, +0.1 (or +0.0.1 for versioningstrategy 3) incremental change. + required: false + default: '' + skipUpdatingDependencies: + description: Skip updating dependency version numbers in all apps. + type: boolean + default: false directCommit: description: Direct Commit? type: boolean @@ -21,12 +26,6 @@ on: type: boolean default: false -permissions: - actions: read - contents: write - id-token: write - pull-requests: write - defaults: run: shell: powershell @@ -39,9 +38,14 @@ jobs: IncrementVersionNumber: needs: [ ] runs-on: [ windows-latest ] + permissions: + actions: read + contents: write + id-token: write + pull-requests: write steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -50,18 +54,18 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -69,17 +73,18 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Increment Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v6.2 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v6.3 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} projects: ${{ github.event.inputs.projects }} versionNumber: ${{ github.event.inputs.versionNumber }} + skipUpdatingDependencies: ${{ github.event.inputs.skipUpdatingDependencies }} directCommit: ${{ github.event.inputs.directCommit }} - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMajor.yaml b/.github/workflows/NextMajor.yaml index 6faab1e..5dd989a 100644 --- a/.github/workflows/NextMajor.yaml +++ b/.github/workflows/NextMajor.yaml @@ -26,10 +26,11 @@ jobs: projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} + artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }} telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -40,21 +41,21 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - get: useGitSubmodules + get: useGitSubmodules,shortLivedArtifactsRetentionDays - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -72,10 +73,11 @@ jobs: id: DetermineWorkflowDepth run: | Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)" + Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=$($env:shortLivedArtifactsRetentionDays)" - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.3 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -98,7 +100,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ fromJson(needs.Initialization.outputs.artifactsRetentionDays) }} artifactsNameSuffix: 'NextMajor' PostProcess: @@ -111,7 +113,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/NextMinor.yaml b/.github/workflows/NextMinor.yaml index 67ee7d8..83147eb 100644 --- a/.github/workflows/NextMinor.yaml +++ b/.github/workflows/NextMinor.yaml @@ -26,10 +26,11 @@ jobs: projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }} buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} + artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }} telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -40,21 +41,21 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - get: useGitSubmodules + get: useGitSubmodules,shortLivedArtifactsRetentionDays - name: Read submodules token id: ReadSubmodulesToken if: env.useGitSubmodules != 'false' && env.useGitSubmodules != '' - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -72,10 +73,11 @@ jobs: id: DetermineWorkflowDepth run: | Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)" + Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=$($env:shortLivedArtifactsRetentionDays)" - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.3 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -98,7 +100,7 @@ jobs: buildMode: ${{ matrix.buildMode }} projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ fromJson(needs.Initialization.outputs.artifactsRetentionDays) }} artifactsNameSuffix: 'NextMinor' PostProcess: @@ -111,7 +113,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PublishToEnvironment.yaml b/.github/workflows/PublishToEnvironment.yaml index f3721ce..90f62fe 100644 --- a/.github/workflows/PublishToEnvironment.yaml +++ b/.github/workflows/PublishToEnvironment.yaml @@ -36,7 +36,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -45,19 +45,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -75,7 +75,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 if: steps.DetermineDeploymentEnvironments.outputs.UnknownEnvironment == 1 with: shell: powershell @@ -107,7 +107,7 @@ jobs: Write-Host "No AuthContext provided for $envName, initiating Device Code flow" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient = New-Object System.Net.WebClient - $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.3/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -141,21 +141,21 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: ${{ matrix.shell }} get: type,powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext' - name: Get Artifacts for deployment - uses: microsoft/AL-Go-Actions/GetArtifactsForDeployment@v6.2 + uses: microsoft/AL-Go-Actions/GetArtifactsForDeployment@v6.3 with: shell: ${{ matrix.shell }} artifactsVersion: ${{ github.event.inputs.appVersion }} @@ -163,7 +163,7 @@ jobs: - name: Deploy to Business Central id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v6.2 + uses: microsoft/AL-Go-Actions/Deploy@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -175,7 +175,7 @@ jobs: - name: Deploy to Power Platform if: env.type == 'PTE' && env.powerPlatformSolutionFolder != '' - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.2 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -194,7 +194,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PullPowerPlatformChanges.yaml b/.github/workflows/PullPowerPlatformChanges.yaml index 3d31499..e522d59 100644 --- a/.github/workflows/PullPowerPlatformChanges.yaml +++ b/.github/workflows/PullPowerPlatformChanges.yaml @@ -38,7 +38,7 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell @@ -51,14 +51,14 @@ jobs: Add-Content -encoding utf8 -Path $env:GITHUB_ENV -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell get: powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -67,7 +67,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -89,7 +89,7 @@ jobs: Add-Content -encoding utf8 -Path $env:GITHUB_ENV -Value "solutionFolder=$solutionFolder" - name: Pull changes from Power Platform environment - uses: microsoft/AL-Go-Actions/PullPowerPlatformChanges@v6.2 + uses: microsoft/AL-Go-Actions/PullPowerPlatformChanges@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -102,7 +102,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/PullRequestHandler.yaml b/.github/workflows/PullRequestHandler.yaml index b70a5d8..c40154a 100644 --- a/.github/workflows/PullRequestHandler.yaml +++ b/.github/workflows/PullRequestHandler.yaml @@ -28,7 +28,7 @@ jobs: if: (github.event.pull_request.base.repo.full_name != github.event.pull_request.head.repo.full_name) && (github.event_name != 'pull_request') runs-on: windows-latest steps: - - uses: microsoft/AL-Go-Actions/VerifyPRChanges@v6.2 + - uses: microsoft/AL-Go-Actions/VerifyPRChanges@v6.3 Initialization: needs: [ PregateCheck ] @@ -40,10 +40,11 @@ jobs: buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }} baselineWorkflowRunId: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowRunId }} workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} + artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }} telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -55,24 +56,26 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell + get: shortLivedArtifactsRetentionDays - name: Determine Workflow Depth id: DetermineWorkflowDepth run: | Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)" + Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=$($env:shortLivedArtifactsRetentionDays)" - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.2 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.3 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -97,7 +100,7 @@ jobs: projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }} baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }} secrets: 'licenseFileUrl,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString' - publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }} + artifactsRetentionDays: ${{ fromJson(needs.Initialization.outputs.artifactsRetentionDays) }} artifactsNameSuffix: 'PR${{ github.event.number }}' StatusCheck: @@ -108,7 +111,7 @@ jobs: steps: - name: Pull Request Status Check id: PullRequestStatusCheck - uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v6.2 + uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -116,7 +119,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 if: success() || failure() env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/PushPowerPlatformChanges.yaml b/.github/workflows/PushPowerPlatformChanges.yaml index f7731cf..ee0db1d 100644 --- a/.github/workflows/PushPowerPlatformChanges.yaml +++ b/.github/workflows/PushPowerPlatformChanges.yaml @@ -29,7 +29,7 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell @@ -43,14 +43,14 @@ jobs: Add-Content -encoding utf8 -Path $env:GITHUB_ENV -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell get: powerPlatformSolutionFolder - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -58,7 +58,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.2 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -80,7 +80,7 @@ jobs: Add-Content -encoding utf8 -Path $env:GITHUB_ENV -Value "solutionFolder=$solutionFolder" - name: Export and push changes to Power Platform - uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.2 + uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -91,7 +91,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Troubleshooting.yaml b/.github/workflows/Troubleshooting.yaml index 6db22bc..5a4055a 100644 --- a/.github/workflows/Troubleshooting.yaml +++ b/.github/workflows/Troubleshooting.yaml @@ -30,7 +30,7 @@ jobs: lfs: true - name: Troubleshooting - uses: microsoft/AL-Go-Actions/Troubleshooting@v6.2 + uses: microsoft/AL-Go-Actions/Troubleshooting@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} diff --git a/.github/workflows/UpdateGitHubGoSystemFiles.yaml b/.github/workflows/UpdateGitHubGoSystemFiles.yaml index 306b90c..32fb187 100644 --- a/.github/workflows/UpdateGitHubGoSystemFiles.yaml +++ b/.github/workflows/UpdateGitHubGoSystemFiles.yaml @@ -36,7 +36,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.2 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.3 with: shell: powershell @@ -45,19 +45,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.3 with: shell: powershell - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: powershell get: templateUrl - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -93,7 +93,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_ENV -Value "downloadLatest=$downloadLatest" - name: Update AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.2 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.3 with: shell: powershell token: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).ghTokenWorkflow }} @@ -104,7 +104,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.2 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.3 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/_BuildALGoProject.yaml b/.github/workflows/_BuildALGoProject.yaml index aa1f5c5..562b1b3 100644 --- a/.github/workflows/_BuildALGoProject.yaml +++ b/.github/workflows/_BuildALGoProject.yaml @@ -46,14 +46,10 @@ on: required: false default: '' type: string - publishThisBuildArtifacts: - description: Flag indicating whether this build artifacts should be published - type: boolean - default: false - publishArtifacts: - description: Flag indicating whether the artifacts should be published - type: boolean - default: false + artifactsRetentionDays: + description: Number of days to keep the artifacts + type: number + default: 0 artifactsNameSuffix: description: Suffix to add to the artifacts names required: false @@ -93,16 +89,17 @@ jobs: lfs: true - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} + buildMode: ${{ inputs.buildMode }} get: useCompilerFolder,keyVaultCodesignCertificateName,doNotSignApps,doNotRunTests,artifact,generateDependencyArtifact,trustedSigning,useGitSubmodules - name: Read secrets id: ReadSecrets if: github.event_name != 'pull_request' - uses: microsoft/AL-Go-Actions/ReadSecrets@v6.2 + uses: microsoft/AL-Go-Actions/ReadSecrets@v6.3 with: shell: ${{ inputs.shell }} gitHubSecrets: ${{ toJson(secrets) }} @@ -118,7 +115,7 @@ jobs: token: '${{ fromJson(steps.ReadSecrets.outputs.Secrets).gitSubmodulesToken }}' - name: Determine ArtifactUrl - uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v6.2 + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v6.3 id: determineArtifactUrl with: shell: ${{ inputs.shell }} @@ -133,7 +130,7 @@ jobs: - name: Download Project Dependencies id: DownloadProjectDependencies - uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v6.2 + uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -144,7 +141,7 @@ jobs: baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - name: Build - uses: microsoft/AL-Go-Actions/RunPipeline@v6.2 + uses: microsoft/AL-Go-Actions/RunPipeline@v6.3 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' BuildMode: ${{ inputs.buildMode }} @@ -159,7 +156,7 @@ jobs: - name: Sign if: inputs.signArtifacts && env.doNotSignApps == 'False' && (env.keyVaultCodesignCertificateName != '' || (fromJson(env.trustedSigning).Endpoint != '' && fromJson(env.trustedSigning).Account != '' && fromJson(env.trustedSigning).CertificateProfile != '')) id: sign - uses: microsoft/AL-Go-Actions/Sign@v6.2 + uses: microsoft/AL-Go-Actions/Sign@v6.3 with: shell: ${{ inputs.shell }} azureCredentialsJson: '${{ fromJson(steps.ReadSecrets.outputs.Secrets).AZURE_CREDENTIALS }}' @@ -167,7 +164,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v6.2 + uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v6.3 if: success() || failure() with: shell: ${{ inputs.shell }} @@ -175,59 +172,35 @@ jobs: buildMode: ${{ inputs.buildMode }} suffix: ${{ inputs.artifactsNameSuffix }} - - name: Upload thisbuild artifacts - apps - if: inputs.publishThisBuildArtifacts - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: ${{ steps.calculateArtifactsNames.outputs.ThisBuildAppsArtifactsName }} - path: '${{ inputs.project }}/.buildartifacts/Apps/' - if-no-files-found: ignore - retention-days: 1 - - - name: Upload thisbuild artifacts - dependencies - if: inputs.publishThisBuildArtifacts - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: ${{ steps.calculateArtifactsNames.outputs.ThisBuildDependenciesArtifactsName }} - path: '${{ inputs.project }}/.buildartifacts/Dependencies/' - if-no-files-found: ignore - retention-days: 1 - - - name: Upload thisbuild artifacts - test apps - if: inputs.publishThisBuildArtifacts - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: ${{ steps.calculateArtifactsNames.outputs.ThisBuildTestAppsArtifactsName }} - path: '${{ inputs.project }}/.buildartifacts/TestApps/' - if-no-files-found: ignore - retention-days: 1 - - name: Publish artifacts - apps - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - if: inputs.publishArtifacts + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 + if: inputs.artifactsRetentionDays >= 0 with: name: ${{ steps.calculateArtifactsNames.outputs.AppsArtifactsName }} path: '${{ inputs.project }}/.buildartifacts/Apps/' if-no-files-found: ignore + retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - dependencies - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - if: inputs.publishArtifacts && env.generateDependencyArtifact == 'True' + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 + if: inputs.artifactsRetentionDays >= 0 && env.generateDependencyArtifact == 'True' with: name: ${{ steps.calculateArtifactsNames.outputs.DependenciesArtifactsName }} path: '${{ inputs.project }}/.buildartifacts/Dependencies/' if-no-files-found: ignore + retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - test apps - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - if: inputs.publishArtifacts + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 + if: inputs.artifactsRetentionDays >= 0 with: name: ${{ steps.calculateArtifactsNames.outputs.TestAppsArtifactsName }} path: '${{ inputs.project }}/.buildartifacts/TestApps/' if-no-files-found: ignore + retention-days: ${{ inputs.artifactsRetentionDays }} - name: Publish artifacts - build output - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 if: (success() || failure()) && (hashFiles(format('{0}/BuildOutput.txt',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.BuildOutputArtifactsName }} @@ -235,7 +208,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - container event log - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 if: (failure()) && (hashFiles(format('{0}/ContainerEventLog.evtx',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.ContainerEventLogArtifactsName }} @@ -243,7 +216,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - test results - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/TestResults.xml',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.TestResultsArtifactsName }} @@ -251,7 +224,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - bcpt test results - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/bcptTestResults.json',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.BcptTestResultsArtifactsName }} @@ -259,7 +232,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - page scripting test results - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 if: (success() || failure()) && (hashFiles(format('{0}/.buildartifacts/PageScriptingTestResults.xml',inputs.project)) != '') with: name: ${{ steps.calculateArtifactsNames.outputs.PageScriptingTestResultsArtifactsName }} @@ -267,7 +240,7 @@ jobs: if-no-files-found: ignore - name: Publish artifacts - page scripting test result details - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 if: (success() || failure()) with: name: ${{ steps.calculateArtifactsNames.outputs.PageScriptingTestResultDetailsArtifactsName }} @@ -277,14 +250,14 @@ jobs: - name: Analyze Test Results id: analyzeTestResults if: (success() || failure()) && env.doNotRunTests == 'False' - uses: microsoft/AL-Go-Actions/AnalyzeTests@v6.2 + uses: microsoft/AL-Go-Actions/AnalyzeTests@v6.3 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} - name: Cleanup if: always() - uses: microsoft/AL-Go-Actions/PipelineCleanup@v6.2 + uses: microsoft/AL-Go-Actions/PipelineCleanup@v6.3 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} diff --git a/.github/workflows/_BuildPowerPlatformSolution.yaml b/.github/workflows/_BuildPowerPlatformSolution.yaml index e2108af..c01efb7 100644 --- a/.github/workflows/_BuildPowerPlatformSolution.yaml +++ b/.github/workflows/_BuildPowerPlatformSolution.yaml @@ -61,14 +61,14 @@ jobs: lfs: true - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v6.2 + uses: microsoft/AL-Go-Actions/ReadSettings@v6.3 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} get: type,powerPlatformSolutionFolder,appRevision,appBuild - name: Build - uses: microsoft/AL-Go-Actions/BuildPowerPlatform@v6.2 + uses: microsoft/AL-Go-Actions/BuildPowerPlatform@v6.3 with: shell: ${{ inputs.shell }} solutionFolder: ${{ inputs.project }} @@ -79,7 +79,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v6.2 + uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v6.3 if: success() || failure() with: shell: ${{ inputs.shell }} @@ -88,7 +88,7 @@ jobs: suffix: ${{ inputs.artifactsNameSuffix }} - name: Publish artifacts - Power Platform Solution - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 if: inputs.publishArtifacts with: name: ${{ steps.calculateArtifactsNames.outputs.PowerPlatformSolutionArtifactsName }} diff --git a/SECURITY.md b/SECURITY.md index 9657262..1054193 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -12,7 +12,7 @@ If you believe you have found a security vulnerability in any Microsoft-owned re Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). -If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). +If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).