Skip to content

auth: Add GitHub OIDC auth - #278

Merged
domdomegg merged 3 commits into
mainfrom
adamj/github-oidc
Aug 18, 2025
Merged

domdomegg merged 3 commits into
mainfrom
adamj/github-oidc

Conversation

@domdomegg

@domdomegg domdomegg commented Aug 18, 2025 •

Copy link
Copy Markdown
Member

Adds support for auth'ing to the registry via GitHub Actions OIDC.

Fixes #271

Motivation and Context

People will probably want to publish to the registry from CI environments. DNS auth can work here fine (#270). But for people who haven't set up DNS, the standard GitHub device flow won't really work here. We could make this nice by supporting GitHub Actions OIDC.

How Has This Been Tested?

Tested locally with a real GitHub OIDC token from a personal repo.

Breaking Changes

None

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

@domdomegg

domdomegg commented Aug 18, 2025 •

Copy link
Copy Markdown
Member Author

TODO:

  • test this out locally end-to-end
  • add docs explaining how to do this

@domdomegg

Copy link
Copy Markdown
Member Author

It works 🎉. Smol demo vid:

CleanShot.2025-08-18.at.20.29.45.mp4

@domdomegg
domdomegg marked this pull request as ready for review August 18, 2025 19:32
@toby

toby commented Aug 18, 2025

Copy link
Copy Markdown
Contributor

This is awesome! I agree that this is probably going to be an important use flow.

@domdomegg
domdomegg merged commit 12ab632 into main Aug 18, 2025
@domdomegg
domdomegg deleted the adamj/github-oidc branch August 18, 2025 21:05
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.

auth: GitHub Actions OIDC

2 participants