diff --git a/.AL-Go/cloudDevEnv.ps1 b/.AL-Go/cloudDevEnv.ps1 index 33b7a8c..2aeb4a7 100644 --- a/.AL-Go/cloudDevEnv.ps1 +++ b/.AL-Go/cloudDevEnv.ps1 @@ -6,7 +6,8 @@ Param( [string] $environmentName = "", [bool] $reuseExistingEnvironment, - [switch] $fromVSCode + [switch] $fromVSCode, + [switch] $clean ) $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 @@ -27,11 +28,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.0/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.1/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.0/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.1/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) @@ -78,7 +79,8 @@ CreateDevEnv ` -environmentName $environmentName ` -reuseExistingEnvironment:$reuseExistingEnvironment ` -baseFolder $baseFolder ` - -project $project + -project $project ` + -clean:$clean } catch { Write-Host -ForegroundColor Red "Error: $($_.Exception.Message)`nStacktrace: $($_.scriptStackTrace)" diff --git a/.AL-Go/localDevEnv.ps1 b/.AL-Go/localDevEnv.ps1 index 1fb4ea3..8e8e837 100644 --- a/.AL-Go/localDevEnv.ps1 +++ b/.AL-Go/localDevEnv.ps1 @@ -5,11 +5,13 @@ # Param( [string] $containerName = "", + [ValidateSet("UserPassword", "Windows")] [string] $auth = "", [pscredential] $credential = $null, [string] $licenseFileUrl = "", [switch] $fromVSCode, - [switch] $accept_insiderEula + [switch] $accept_insiderEula, + [switch] $clean ) $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 @@ -30,11 +32,11 @@ Write-Host -ForegroundColor Yellow @' $webClient = New-Object System.Net.WebClient $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumentList ([System.Net.Cache.RequestCacheLevel]::NoCacheNoStore) $webClient.Encoding = [System.Text.Encoding]::UTF8 -$GitHubHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.0/Github-Helper.psm1' +$GitHubHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.1/Github-Helper.psm1' Write-Host "Downloading GitHub Helper module from $GitHubHelperUrl" $GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1" $webClient.DownloadFile($GitHubHelperUrl, $GitHubHelperPath) -$ALGoHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.0/AL-Go-Helper.ps1' +$ALGoHelperUrl = 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.1/AL-Go-Helper.ps1' Write-Host "Downloading AL-Go Helper script from $ALGoHelperUrl" $ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1" $webClient.DownloadFile($ALGoHelperUrl, $ALGoHelperPath) @@ -104,8 +106,8 @@ if (-not $credential) { if (-not $licenseFileUrl) { if ($settings.type -eq "AppSource App") { - $description = "When developing AppSource Apps, your local development environment needs the developer licensefile with permissions to your AppSource app object IDs" - $default = "" + $description = "When developing AppSource Apps for Business Central versions prior to 22, your local development environment needs the developer licensefile with permissions to your AppSource app object IDs" + $default = "none" } else { $description = "When developing PTEs, you can optionally specify a developer licensefile with permissions to object IDs of your dependant apps" @@ -134,7 +136,8 @@ CreateDevEnv ` -auth $auth ` -credential $credential ` -licenseFileUrl $licenseFileUrl ` - -accept_insiderEula:$accept_insiderEula + -accept_insiderEula:$accept_insiderEula ` + -clean:$clean } catch { Write-Host -ForegroundColor Red "Error: $($_.Exception.Message)`nStacktrace: $($_.scriptStackTrace)" diff --git a/.github/RELEASENOTES.copy.md b/.github/RELEASENOTES.copy.md index cb2dd2b..5a0887f 100644 --- a/.github/RELEASENOTES.copy.md +++ b/.github/RELEASENOTES.copy.md @@ -1,3 +1,47 @@ +## v5.1 + +### Issues + +- Issue 1019 CI/CD Workflow still being scheduled after it was disabled +- Issue 1021 Error during Create Online Development Environment action +- Issue 1022 Error querying artifacts: No such host is known. (bcartifacts-exdbf9fwegejdqak.blob.core.windows.net:443) +- Issue 922 Deploy Reference Documentation (ALDoc) failed with custom +- ContainerName used during build was invalid if project names contained special characters +- Issue 1009 by adding a includeDependencies property in DeliverToAppSource +- Issue 997 'Deliver to AppSource' action fails for projects containing a space +- Issue 987 Resource not accessible by integration when creating release from specific version +- Issue 979 Publish to AppSource Documentation +- Issue 1018 Artifact setting - possibility to read version from app.json +- Issue 1008 Allow PullRequestHandler to use ubuntu or self hosted runners for all jobs except for pregateCheck +- Issue 962 Finer control of "shell"-property +- Issue 1041 Harden the version comparison when incrementing version number +- Issue 1042 Downloading artifacts from GitHub doesn't work with branch names which include forward slashes + +### Better artifact selection + +The artifact setting in your project settings file can now contain a `*` instead of the version number. This means that AL-Go for GitHub will determine the application dependency for your projects together with the `applicationDependency` setting and determine which Business Central version is needed for the project. +- `"artifact": "//*//latest"` will give you the latest Business Central version, higher than your application dependency and with the same major.minor as your application dependency. +- `"artifact": "//*//first"` will give you the first Business Central version, higher than your application dependency and with the same major.minor as your application dependency. + +### New Settings + +- `deliverToAppSource`: a JSON object containing the following properties + - **productId** must be the product Id from partner Center. + - **mainAppFolder** specifies the appFolder of the main app if you have multiple apps in the same project. + - **continuousDelivery** can be set to true to enable continuous delivery of every successful build to AppSource Validation. Note that the app will only be in preview in AppSource and you will need to manually press GO LIVE in order for the app to be promoted to production. + - **includeDependencies** can be set to an array of file names (incl. wildcards) which are the names of the dependencies to include in the AppSource submission. Note that you need to set `generateDependencyArtifact` in the project settings file to true in order to include dependencies. +- Add `shell` as a property under `DeployTo` structure + +### Deprecated Settings + +- `appSourceContinuousDelivery` is moved to the `deliverToAppSource` structure +- `appSourceMainAppFolder` is moved to the `deliverToAppSource` structure +- `appSourceProductId` is moved to the `deliverToAppSource` structure + +### New parameter -clean on localdevenv and clouddevenv + +Adding -clean when running localdevenv or clouddevenv will create a clean development environment without compiling and publishing your apps. + ## v5.0 ### Issues diff --git a/.github/workflows/AddExistingAppOrTestApp.yaml b/.github/workflows/AddExistingAppOrTestApp.yaml index 046c847..62b4ff8 100644 --- a/.github/workflows/AddExistingAppOrTestApp.yaml +++ b/.github/workflows/AddExistingAppOrTestApp.yaml @@ -39,7 +39,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -48,19 +48,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0090" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -68,7 +68,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Add existing app - uses: microsoft/AL-Go-Actions/AddExistingApp@v5.0 + uses: microsoft/AL-Go-Actions/AddExistingApp@v5.1 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@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0090" diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index b9b7af5..38eea0e 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -43,7 +43,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -54,14 +54,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0091" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell get: type @@ -73,14 +73,14 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} - name: Determine Delivery Target Secrets id: DetermineDeliveryTargetSecrets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v5.0 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v5.1 with: shell: powershell projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}' @@ -88,7 +88,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -96,7 +96,7 @@ jobs: - name: Determine Delivery Targets id: DetermineDeliveryTargets - uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v5.0 + uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v5.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -106,7 +106,7 @@ jobs: - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v5.0 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v5.1 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -122,13 +122,13 @@ jobs: uses: actions/checkout@v4 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell get: templateUrl - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v5.0 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v5.1 with: shell: powershell templateUrl: ${{ env.templateUrl }} @@ -164,7 +164,7 @@ jobs: runs-on: windows-latest name: Deploy Reference Documentation permissions: - contents: write + contents: read actions: read pages: write id-token: write @@ -181,7 +181,7 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell @@ -190,7 +190,7 @@ jobs: uses: actions/configure-pages@v5 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v5.0 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v5.1 with: shell: powershell artifacts: '.artifacts' @@ -211,6 +211,9 @@ jobs: strategy: ${{ fromJson(needs.Initialization.outputs.environmentsMatrixJson) }} runs-on: ${{ fromJson(matrix.os) }} name: Deploy to ${{ matrix.environment }} + defaults: + run: + shell: ${{ matrix.shell }} environment: name: ${{ matrix.environment }} url: ${{ steps.Deploy.outputs.environmentUrl }} @@ -224,9 +227,9 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: - shell: powershell + shell: ${{ matrix.shell }} - name: EnvName id: envName @@ -237,19 +240,19 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: - shell: powershell + shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext,${{ steps.envName.outputs.envName }}-EnvironmentName,${{ steps.envName.outputs.envName }}_EnvironmentName,EnvironmentName,projects' - name: Deploy id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v5.0 + uses: microsoft/AL-Go-Actions/Deploy@v5.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: - shell: powershell + shell: ${{ matrix.shell }} environmentName: ${{ matrix.environment }} artifacts: '.artifacts' type: 'CD' @@ -274,20 +277,20 @@ jobs: path: '.artifacts' - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ matrix.deliveryTarget }}Context' - name: Deliver - uses: microsoft/AL-Go-Actions/Deliver@v5.0 + uses: microsoft/AL-Go-Actions/Deliver@v5.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -307,7 +310,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0091" diff --git a/.github/workflows/CreateApp.yaml b/.github/workflows/CreateApp.yaml index ca5a161..d09b871 100644 --- a/.github/workflows/CreateApp.yaml +++ b/.github/workflows/CreateApp.yaml @@ -49,7 +49,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -58,20 +58,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0092" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell get: type - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -79,7 +79,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new app - uses: microsoft/AL-Go-Actions/CreateApp@v5.0 + uses: microsoft/AL-Go-Actions/CreateApp@v5.1 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@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0092" diff --git a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml index 90fad2e..f83af68 100644 --- a/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml +++ b/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml @@ -48,7 +48,7 @@ jobs: githubRunnerShell: ${{ steps.ReadSettings.outputs.GitHubRunnerShell }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -57,20 +57,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0093" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -89,7 +89,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/v5.0/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.1/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -111,13 +111,13 @@ jobs: uses: actions/checkout@v4 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -136,7 +136,7 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials" - name: Create Development Environment - uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v5.0 + uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v5.1 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@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0093" diff --git a/.github/workflows/CreatePerformanceTestApp.yaml b/.github/workflows/CreatePerformanceTestApp.yaml index f968b5a..c7e5d6d 100644 --- a/.github/workflows/CreatePerformanceTestApp.yaml +++ b/.github/workflows/CreatePerformanceTestApp.yaml @@ -55,7 +55,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -64,19 +64,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0102" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -84,7 +84,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v5.0 + uses: microsoft/AL-Go-Actions/CreateApp@v5.1 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@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0102" diff --git a/.github/workflows/CreateRelease.yaml b/.github/workflows/CreateRelease.yaml index 6b860fa..2bb83da 100644 --- a/.github/workflows/CreateRelease.yaml +++ b/.github/workflows/CreateRelease.yaml @@ -72,7 +72,7 @@ jobs: releaseVersion: ${{ steps.createreleasenotes.outputs.releaseVersion }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -81,26 +81,35 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0094" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell get: templateUrl,repoName + - name: Read secrets + id: ReadSecrets + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 + with: + shell: powershell + gitHubSecrets: ${{ toJson(secrets) }} + getSecrets: 'TokenForPush' + useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' + - name: Determine Projects id: determineProjects - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.1 with: shell: powershell - name: Check for updates to AL-Go system files - uses: microsoft/AL-Go-Actions/CheckForUpdates@v5.0 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v5.1 with: shell: powershell templateUrl: ${{ env.templateUrl }} @@ -120,10 +129,10 @@ jobs: $headers = @{ "Authorization" = "token ${{ github.token }}" "X-GitHub-Api-Version" = "2022-11-28" - "Accept" = "application/vnd.github+json" + "Accept" = "application/vnd.github+json; charset=utf-8" } do { - $repoArtifacts = Invoke-WebRequest -UseBasicParsing -Headers $headers -Uri "$($ENV:GITHUB_API_URL)/repos/$($ENV:GITHUB_REPOSITORY)/actions/artifacts?per_page=100&page=$page" | ConvertFrom-Json + $repoArtifacts = Invoke-RestMethod -UseBasicParsing -Headers $headers -Uri "$($ENV:GITHUB_API_URL)/repos/$($ENV:GITHUB_REPOSITORY)/actions/artifacts?per_page=100&page=$page" $allArtifacts += $repoArtifacts.Artifacts | Where-Object { !$_.expired } $page++ } @@ -185,7 +194,7 @@ jobs: - name: Prepare release notes id: createreleasenotes - uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v5.0 + uses: microsoft/AL-Go-Actions/CreateReleaseNotes@v5.1 with: shell: powershell parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} @@ -198,7 +207,7 @@ jobs: env: bodyMD: ${{ steps.createreleasenotes.outputs.releaseNotes }} with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ steps.ReadSecrets.outputs.TokenForPush }} script: | var bodyMD = process.env.bodyMD const createReleaseResponse = await github.rest.repos.createRelease({ @@ -228,17 +237,18 @@ jobs: uses: actions/checkout@v4 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} - getSecrets: 'nuGetContext,storageContext' + getSecrets: 'nuGetContext,storageContext,TokenForPush' + useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Download artifact run: | @@ -256,11 +266,11 @@ jobs: env: releaseId: ${{ needs.createrelease.outputs.releaseId }} with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ steps.ReadSecrets.outputs.TokenForPush }} script: | const releaseId = process.env.releaseId const assetPath = '${{ matrix.name }}.zip' - const assetName = '${{ matrix.name }}.zip' + const assetName = encodeURIComponent('${{ matrix.name }}.zip'.replaceAll(' ','.')).replaceAll('%','') const fs = require('fs'); const uploadAssetResponse = await github.rest.repos.uploadReleaseAsset({ owner: context.repo.owner, @@ -271,7 +281,7 @@ jobs: }); - name: Deliver to NuGet - uses: microsoft/AL-Go-Actions/Deliver@v5.0 + uses: microsoft/AL-Go-Actions/Deliver@v5.1 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).nuGetContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -284,7 +294,7 @@ jobs: atypes: 'Apps,TestApps' - name: Deliver to Storage - uses: microsoft/AL-Go-Actions/Deliver@v5.0 + uses: microsoft/AL-Go-Actions/Deliver@v5.1 if: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).storageContext != '' }} env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' @@ -328,13 +338,13 @@ jobs: uses: actions/checkout@v4 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -342,7 +352,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Update Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v5.0 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v5.1 with: shell: powershell token: ${{ steps.ReadSecrets.outputs.TokenForPush }} @@ -360,7 +370,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0094" diff --git a/.github/workflows/CreateTestApp.yaml b/.github/workflows/CreateTestApp.yaml index 6637565..b605917 100644 --- a/.github/workflows/CreateTestApp.yaml +++ b/.github/workflows/CreateTestApp.yaml @@ -51,7 +51,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -60,19 +60,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0095" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -80,7 +80,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Creating a new test app - uses: microsoft/AL-Go-Actions/CreateApp@v5.0 + uses: microsoft/AL-Go-Actions/CreateApp@v5.1 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@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0095" diff --git a/.github/workflows/Current.yaml b/.github/workflows/Current.yaml index 9c5e425..da78220 100644 --- a/.github/workflows/Current.yaml +++ b/.github/workflows/Current.yaml @@ -5,6 +5,7 @@ on: permissions: contents: read + actions: read defaults: run: @@ -29,7 +30,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -40,14 +41,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0101" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell @@ -58,7 +59,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -95,7 +96,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0101" diff --git a/.github/workflows/DeployReferenceDocumentation.yaml b/.github/workflows/DeployReferenceDocumentation.yaml index 359dbe5..a10a071 100644 --- a/.github/workflows/DeployReferenceDocumentation.yaml +++ b/.github/workflows/DeployReferenceDocumentation.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch: permissions: - contents: write + contents: read actions: read pages: write id-token: write @@ -30,19 +30,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0097" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v5.0 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v5.1 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -55,7 +55,7 @@ jobs: uses: actions/configure-pages@v5 - name: Build Reference Documentation - uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v5.0 + uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v5.1 with: shell: powershell artifacts: 'latest' diff --git a/.github/workflows/IncrementVersionNumber.yaml b/.github/workflows/IncrementVersionNumber.yaml index 14a8e1d..e63bcd1 100644 --- a/.github/workflows/IncrementVersionNumber.yaml +++ b/.github/workflows/IncrementVersionNumber.yaml @@ -39,7 +39,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -48,19 +48,19 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0096" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -68,7 +68,7 @@ jobs: useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' - name: Increment Version Number - uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v5.0 + uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v5.1 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@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0096" diff --git a/.github/workflows/NextMajor.yaml b/.github/workflows/NextMajor.yaml index c80b04a..fcc2465 100644 --- a/.github/workflows/NextMajor.yaml +++ b/.github/workflows/NextMajor.yaml @@ -5,6 +5,7 @@ on: permissions: contents: read + actions: read defaults: run: @@ -29,7 +30,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -40,14 +41,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0099" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell @@ -58,7 +59,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -95,7 +96,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0099" diff --git a/.github/workflows/NextMinor.yaml b/.github/workflows/NextMinor.yaml index 16b68d5..3303c39 100644 --- a/.github/workflows/NextMinor.yaml +++ b/.github/workflows/NextMinor.yaml @@ -5,6 +5,7 @@ on: permissions: contents: read + actions: read defaults: run: @@ -29,7 +30,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -40,14 +41,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0100" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell @@ -58,7 +59,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -95,7 +96,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0100" diff --git a/.github/workflows/PublishToAppSource.yaml b/.github/workflows/PublishToAppSource.yaml index b9ed646..eb8069d 100644 --- a/.github/workflows/PublishToAppSource.yaml +++ b/.github/workflows/PublishToAppSource.yaml @@ -1,4 +1,5 @@ name: ' Publish To AppSource' +run-name: 'Publish To AppSource - Version ${{ inputs.appVersion }}, Projects ${{ inputs.projects }}' on: workflow_dispatch: @@ -36,7 +37,7 @@ jobs: telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -45,7 +46,7 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0103" @@ -59,20 +60,20 @@ jobs: uses: actions/checkout@v4 - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} getSecrets: 'appSourceContext' - name: Deliver - uses: microsoft/AL-Go-Actions/Deliver@v5.0 + uses: microsoft/AL-Go-Actions/Deliver@v5.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -94,7 +95,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0103" diff --git a/.github/workflows/PublishToEnvironment.yaml b/.github/workflows/PublishToEnvironment.yaml index 06fe99f..1ea28d5 100644 --- a/.github/workflows/PublishToEnvironment.yaml +++ b/.github/workflows/PublishToEnvironment.yaml @@ -35,7 +35,7 @@ jobs: deviceCode: ${{ steps.Authenticate.outputs.deviceCode }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -44,20 +44,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0097" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell - name: Determine Deployment Environments id: DetermineDeploymentEnvironments - uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v5.0 + uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v5.1 env: GITHUB_TOKEN: ${{ github.token }} with: @@ -75,7 +75,7 @@ jobs: - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 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/v5.0/AL-Go-Helper.ps1', $ALGoHelperPath) + $webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v5.1/AL-Go-Helper.ps1', $ALGoHelperPath) . $ALGoHelperPath DownloadAndImportBcContainerHelper $authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0)) @@ -121,6 +121,9 @@ jobs: strategy: ${{ fromJson(needs.Initialization.outputs.environmentsMatrixJson) }} runs-on: ${{ fromJson(matrix.os) }} name: Deploy to ${{ matrix.environment }} + defaults: + run: + shell: ${{ matrix.shell }} environment: name: ${{ matrix.environment }} url: ${{ steps.Deploy.outputs.environmentUrl }} @@ -138,25 +141,25 @@ jobs: Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "envName=$envName" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: - shell: powershell + shell: ${{ matrix.shell }} - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: - shell: powershell + shell: ${{ matrix.shell }} gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext,${{ steps.envName.outputs.envName }}-EnvironmentName,${{ steps.envName.outputs.envName }}_EnvironmentName,EnvironmentName,projects' - name: Deploy id: Deploy - uses: microsoft/AL-Go-Actions/Deploy@v5.0 + uses: microsoft/AL-Go-Actions/Deploy@v5.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: - shell: powershell + shell: ${{ matrix.shell }} environmentName: ${{ matrix.environment }} artifacts: ${{ github.event.inputs.appVersion }} type: 'Publish' @@ -172,7 +175,7 @@ jobs: - name: Finalize the workflow id: PostProcess - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0097" diff --git a/.github/workflows/PullRequestHandler.yaml b/.github/workflows/PullRequestHandler.yaml index 5dce733..55a75a2 100644 --- a/.github/workflows/PullRequestHandler.yaml +++ b/.github/workflows/PullRequestHandler.yaml @@ -25,9 +25,9 @@ env: jobs: PregateCheck: 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 ] + runs-on: windows-latest steps: - - uses: microsoft/AL-Go-Actions/VerifyPRChanges@v5.0 + - uses: microsoft/AL-Go-Actions/VerifyPRChanges@v5.1 Initialization: needs: [ PregateCheck ] @@ -44,7 +44,7 @@ jobs: workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }} steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -56,14 +56,14 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0104" - name: Read settings id: ReadSettings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell @@ -74,7 +74,7 @@ jobs: - name: Determine Projects To Build id: determineProjectsToBuild - uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.0 + uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v5.1 with: shell: powershell maxBuildDepth: ${{ env.workflowDepth }} @@ -111,7 +111,7 @@ jobs: steps: - name: Pull Request Status Check id: PullRequestStatusCheck - uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v5.0 + uses: microsoft/AL-Go-Actions/PullRequestStatusCheck@v5.1 env: GITHUB_TOKEN: ${{ github.token }} with: diff --git a/.github/workflows/Troubleshooting.yaml b/.github/workflows/Troubleshooting.yaml index 55b4755..8c9da36 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@v5.0 + uses: microsoft/AL-Go-Actions/Troubleshooting@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} diff --git a/.github/workflows/UpdateGitHubGoSystemFiles.yaml b/.github/workflows/UpdateGitHubGoSystemFiles.yaml index db6db53..300d839 100644 --- a/.github/workflows/UpdateGitHubGoSystemFiles.yaml +++ b/.github/workflows/UpdateGitHubGoSystemFiles.yaml @@ -33,7 +33,7 @@ jobs: runs-on: [ windows-latest ] steps: - name: Dump Workflow Information - uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.0 + uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v5.1 with: shell: powershell @@ -42,20 +42,20 @@ jobs: - name: Initialize the workflow id: init - uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowInitialize@v5.1 with: shell: powershell eventId: "DO0098" - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: powershell get: templateUrl - name: Read secrets id: ReadSecrets - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: powershell gitHubSecrets: ${{ toJson(secrets) }} @@ -91,7 +91,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@v5.0 + uses: microsoft/AL-Go-Actions/CheckForUpdates@v5.1 with: shell: powershell token: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).ghTokenWorkflow }} @@ -102,7 +102,7 @@ jobs: - name: Finalize the workflow if: always() - uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.0 + uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v5.1 with: shell: powershell eventId: "DO0098" diff --git a/.github/workflows/_BuildALGoProject.yaml b/.github/workflows/_BuildALGoProject.yaml index 0331c37..33f94f0 100644 --- a/.github/workflows/_BuildALGoProject.yaml +++ b/.github/workflows/_BuildALGoProject.yaml @@ -72,6 +72,10 @@ on: required: false type: string +permissions: + contents: read + actions: read + env: ALGoOrgSettings: ${{ vars.ALGoOrgSettings }} ALGoRepoSettings: ${{ vars.ALGoRepoSettings }} @@ -92,7 +96,7 @@ jobs: lfs: true - name: Read settings - uses: microsoft/AL-Go-Actions/ReadSettings@v5.0 + uses: microsoft/AL-Go-Actions/ReadSettings@v5.1 with: shell: ${{ inputs.shell }} project: ${{ inputs.project }} @@ -101,14 +105,14 @@ jobs: - name: Read secrets id: ReadSecrets if: github.event_name != 'pull_request' - uses: microsoft/AL-Go-Actions/ReadSecrets@v5.0 + uses: microsoft/AL-Go-Actions/ReadSecrets@v5.1 with: shell: ${{ inputs.shell }} gitHubSecrets: ${{ toJson(secrets) }} getSecrets: '${{ inputs.secrets }},appDependencyProbingPathsSecrets' - name: Determine ArtifactUrl - uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v5.0 + uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v5.1 id: determineArtifactUrl with: shell: ${{ inputs.shell }} @@ -124,7 +128,7 @@ jobs: - name: Download Project Dependencies id: DownloadProjectDependencies - uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v5.0 + uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v5.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' with: @@ -135,7 +139,7 @@ jobs: baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }} - name: Build - uses: microsoft/AL-Go-Actions/RunPipeline@v5.0 + uses: microsoft/AL-Go-Actions/RunPipeline@v5.1 env: Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' BuildMode: ${{ inputs.buildMode }} @@ -151,7 +155,7 @@ jobs: - name: Sign if: inputs.signArtifacts && env.doNotSignApps == 'False' && env.keyVaultCodesignCertificateName != '' id: sign - uses: microsoft/AL-Go-Actions/Sign@v5.0 + uses: microsoft/AL-Go-Actions/Sign@v5.1 with: shell: ${{ needs.Initialization.outputs.githubRunnerShell }} azureCredentialsJson: ${{ secrets.AZURE_CREDENTIALS }} @@ -160,7 +164,7 @@ jobs: - name: Calculate Artifact names id: calculateArtifactsNames - uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v5.0 + uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v5.1 if: success() || failure() with: shell: ${{ inputs.shell }} @@ -254,7 +258,7 @@ jobs: - name: Analyze Test Results id: analyzeTestResults if: (success() || failure()) && env.doNotRunTests == 'False' - uses: microsoft/AL-Go-Actions/AnalyzeTests@v5.0 + uses: microsoft/AL-Go-Actions/AnalyzeTests@v5.1 with: shell: ${{ inputs.shell }} parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }} @@ -262,7 +266,7 @@ jobs: - name: Cleanup if: always() - uses: microsoft/AL-Go-Actions/PipelineCleanup@v5.0 + uses: microsoft/AL-Go-Actions/PipelineCleanup@v5.1 with: shell: ${{ inputs.shell }} parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }}