Skip to content

Add update-dependencies support for resolving .NET build manifest from pipeline artifacts #6502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 26, 2025

Conversation

lbussell
Copy link
Contributor

Fixes #6484

This PR allows you to choose between resolving the .NET Build Manifest from either the staging storage account or the staging pipeline artifacts, based on whether you passed the CLI option --staging-storage-account. This allows devs to target staged builds from their local machine without needing access to the production staging storage account.

@lbussell lbussell requested a review from a team as a code owner June 25, 2025 22:52
Comment on lines 39 to 49
public HttpClient GetAuthenticatedHttpClient()
{
// Create an HttpClient that uses the Azure Developer CLI credential for authentication.
var httpClient = new HttpClient();
var header = new AuthenticationHeaderValue(
"Basic",
Convert.ToBase64String(Encoding.ASCII.GetBytes(string.Format("{0}:{1}", "", _accessToken.Value))));
httpClient.DefaultRequestHeaders.Authorization = header;

return httpClient;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know doing HttpClients this way is bad. I'll come back and fix it in a bit.

@lbussell lbussell requested a review from mthalman June 26, 2025 17:10
@lbussell lbussell enabled auto-merge (squash) June 26, 2025 17:32
@lbussell lbussell merged commit 469f2db into dotnet:nightly Jun 26, 2025
114 checks passed
@lbussell lbussell deleted the issue-6484 branch July 1, 2025 22:11
lbussell added a commit to lbussell/dotnet-docker that referenced this pull request Jul 7, 2025
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.

2 participants