maikvandergaag / msft-extensions

Repository for extensions mainly used for Azure DevOps Extensions
https://msftplayground.com
MIT License
125 stars 80 forks source link

Clarification : New release create with PAT user but it should be originally build create user #524

Closed LilanSilva closed 8 months ago

LilanSilva commented 9 months ago

For which extension would you like to add a feature request?

Question I have a release pipeline called 'Parent Release' and 'Child Release.' I use an extension in the 'Parent Release' to trigger a new 'Child Release.' The problem is that the user created in the 'Child Release' appears as the PAT (Personal Access Token) created user instead of the 'Parent Release' created user. Is there any way to fix this?

maikvandergaag commented 9 months ago

Hi @LilanSilva not completely sure what you mean. Important is that the connection is made from the parent pipeline to the child one. There are no real specific permissions.

LilanSilva commented 9 months ago

My requirement is that when a developer commits changes to the master branch, a release pipeline called “Parent release pipeline” is triggered using the build from that commit. This release pipeline includes a "Trigger Azure DevOps Pipeline" step to trigger another release pipeline called “Child release pipeline” based on the build artifacts. To achieve this, I used the "Trigger Azure DevOps Pipeline" extention with a Personal Access Token (PAT). However, when I trigger a new release (“Child release”) pipeline using the PAT, the PAT is treated as the user creating the new release, causing an issue. New release (“Child release”) create user should be originally build trigge user.

maikvandergaag commented 9 months ago

Oke, so the user that triggered the parent pipeline should also be the one that triggers the child pipeline is that correct?

github-actions[bot] commented 8 months ago

It looks like there hasn't been a reply in 30 days, so I'm closing this issue.