← 返回首页
Fix up ContainerRegistry Authentication for OCI by anamnavi · Pull Request #1971 · PowerShell/PSResourceGet · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Fix up ContainerRegistry Authentication for OCI#1971

Open
anamnavi wants to merge 1 commit into
masterfrom
oci-auth
Open

Fix up ContainerRegistry Authentication for OCI#1971
anamnavi wants to merge 1 commit into
masterfrom
oci-auth

Conversation

Copy link
Copy Markdown
Member

Opening this PR off jborean's branch, to run tests (which need to be run on upstream).

Updates the ContainerRegistry authentication logic to work with OCI compliant registries like ghcr.io. The changes skip using the Azure environment credentials unless the bearer service ends with .azurecr.io as these tokens are only useful for ACR. The Azure AccessToken to Bearer token exchange is also simplified with an unecessary step removed.

A new special prefix is used for the username when a credential represents an Azure AccessToken. This is necessary to ensure that only these specific types of credentials will use the Azure specific steps for authentication.

PR Summary

PR Context

PR Checklist

Updates the ContainerRegistry authentication logic to work with OCI compliant registries like `ghcr.io`. The changes skip using the Azure environment credentials unless the bearer service ends with `.azurecr.io` as these tokens are only useful for ACR. The Azure AccessToken to Bearer token exchange is also simplified with an unecessary step removed. A new special prefix is used for the username when a credential represents an Azure AccessToken. This is necessary to ensure that only these specific types of credentials will use the Azure specific steps for authentication.
Copy link
Copy Markdown
Member Author

/azp run

Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.