Skip to content

Fix pipeline issues where System token should be used for the PAT if valid - #260

Merged
Michael Smith (Exolun) merged 1 commit into
microsoft:developfrom
Exolun:user/mismit/fix_pipeline_systemtoken
Jul 17, 2024
Merged

Fix pipeline issues where System token should be used for the PAT if valid#260
Michael Smith (Exolun) merged 1 commit into
microsoft:developfrom
Exolun:user/mismit/fix_pipeline_systemtoken

Conversation

@Exolun

Copy link
Copy Markdown
Contributor

I've been testing the new Cmdlet and discovered that we have scenarios where the agent machine is not authorized to generate a PAT via HTTP request, and there was some fallback code where we check if the SYSTEM_ACCESSTOKEN can be used as a valid pat and use that token in the .toml.

This pull request adds a conditional back in to check if this is the case for TF_BUILD environments.

Other minor changes:

  • Min version of Az.Accounts should be 1.8+
  • Add max version of Az.Accounts of 4.0 in anticipation of breaking changes (assertion in the .psm1 on load)
  • Cleaned up the NoValidation flag which is no longer passed through

@jwittner Josh Wittner (jwittner) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improved handling of these dependencies!

@Exolun
Michael Smith (Exolun) merged commit 75e68c4 into microsoft:develop Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants