dotnet / docker-tools

This is a repo to house some common tools for our various docker repos.
MIT License
124 stars 46 forks source link

Workaround for token failure in non-authenticated configurations #1314

Closed mthalman closed 5 months ago

mthalman commented 5 months ago

The changes from https://github.com/dotnet/docker-tools/pull/1310 are causing a failure in the GenerateBuildMatrix pipeline step because the agent has no auth configuration in that step, causing the GetToken method to fail during component composition.

Workaround is to just catch the exception. It will work correctly in build steps that are configured with authentication enabled.

dotnet-issue-labeler[bot] commented 5 months ago

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.