microsoft / AL-Go

The plug-and-play DevOps solution for Business Central app development on GitHub
MIT License
278 stars 114 forks source link

[Bug]: Publish to Environment fails after updating AL-Go to 5.3 #1184

Closed gntpet closed 1 week ago

gntpet commented 2 weeks ago

AL-Go version

5.3

Describe the issue

Publish to Environment fails on the last step (PostProcesss), after updating to 5.3

It fails with Permission denied error

See full log of Finalize Workflow Step

Run microsoft/AL-Go-Actions/WorkflowPostProcess@v5.3
  with:
    telemetryScopeJson: {"workflowStartTime":"2024-08-30T06:38:[1](https://github.com/sede-res/srs-bc/actions/runs/10628060108/job/29462673217#step:3:1)1.6215831Z"}
    currentJobContext: {
    "status": "success"
  }
    actionsRef: v5.3
  env:
    ALGoOrgSettings: 
    ALGoRepoSettings: 
    GITHUB_TOKEN: ***
Run /home/runner/work/_actions/microsoft/AL-Go-Actions/v5.3/WorkflowPostProcess/../Invoke-AlGoAction.ps1 -ActionName "WorkflowPostProcess" -Action {
  /home/runner/work/_actions/microsoft/AL-Go-Actions/v5.3/WorkflowPostProcess/../Invoke-AlGoAction.ps1 -ActionName "WorkflowPostProcess" -Action {
    /home/runner/work/_actions/microsoft/AL-Go-Actions/v5.3/WorkflowPostProcess/WorkflowPostProcess.ps1 -telemetryScopeJson $ENV:_telemetryScopeJson -currentJobContext $ENV:_currentJobContext -actionsRef $ENV:_actionsRef
  }
  shell: /usr/bin/bash -e {0}
  env:
    ALGoOrgSettings: 
    ALGoRepoSettings: 
    GITHUB_TOKEN: ***
    _telemetryScopeJson: {"workflowStartTime":"[2](https://github.com/sede-res/srs-bc/actions/runs/10628060108/job/29462673217#step:3:2)024-08-[3](https://github.com/sede-res/srs-bc/actions/runs/10628060108/job/29462673217#step:3:3)0T06:38:11.6215831Z"}
    _currentJobContext: {
    "status": "success"
  }
    _actionsRef: v5.3
/home/runner/work/_temp/2d[4](https://github.com/sede-res/srs-bc/actions/runs/10628060108/job/29462673217#step:3:4)a877c-bb00-48b4-9d41-60877a1d74a7.sh: line 1: /home/runner/work/_actions/microsoft/AL-Go-Actions/v[5](https://github.com/sede-res/srs-bc/actions/runs/10628060108/job/29462673217#step:3:5).3/WorkflowPostProcess/../Invoke-AlGoAction.ps1: Permission denied
Error: Process completed with exit code 12[6](https://github.com/sede-res/srs-bc/actions/runs/10628060108/job/29462673217#step:3:6).

Expected behavior

Step to succceed

Steps to reproduce

Run publish to environment

Additional context (logs, screenshots, etc.)

No response

aholstrup1 commented 2 weeks ago

That is indeed a bug on our end. Created a PR to fix it