Repository navigation
Use Entra ID auth for Azure OpenAI in notebook tests - #2640
Closed
Dayenne Souza (dayesouza) wants to merge 4 commits into
Closed
Dayenne Souza (dayesouza) wants to merge 4 commits into
Dayenne Souza (dayesouza) wants to merge 4 commits into
Conversation
Log in to Azure with OIDC and stop passing GRAPHRAG_API_KEY, so the graphrag-llm notebooks take their existing managed-identity path. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Confirms which identity the OIDC login uses. Revert before merge. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This reverts commit 2d1c158.
Scopes the Azure OIDC subject to the environment so one federated credential covers pull requests and main. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Dayenne Souza (dayesouza)
had a problem deploying
to
integration
November 25, 2026 14:56 — with
GitHub Actions
Failure
Dayenne Souza (dayesouza)
had a problem deploying
to
integration
November 25, 2026 14:56 — with
GitHub Actions
Failure
2 of 4 tasks
Contributor
Author
2 of 4 tasks
This branch had an error being deployed
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Switch the notebook tests from API-key auth to Entra ID auth for Azure OpenAI. The workflow now logs in to Azure with OIDC and no longer passes
GRAPHRAG_API_KEY.Related Issues
None.
Proposed Changes
id-token: writeto the workflow permissions.azure/loginstep (v3.1.0, pinned to its commit SHA) before the notebook test, using theAZURE_CLIENT_ID,AZURE_TENANT_IDandAZURE_SUBSCRIPTION_IDsecrets.GRAPHRAG_API_KEYfrom the job environment.GRAPHRAG_API_BASEis unchanged.No notebook changes are needed: the
packages/graphrag-llm/notebooksnotebooks already useAuthMethod.AzureManagedIdentitywhenGRAPHRAG_API_KEYis not set, andDefaultAzureCredentialpicks up the Azure CLI login.Checklist
Additional Notes
az loginand no API key set:uv run poe test_notebookgave 12 passed. The OIDC login itself can only be exercised in CI, so this PR's run is its first test.refs/heads/mainis needed before the post-merge run onmaincan log in.gh-pages.ymlstill usesGRAPHRAG_API_KEY, and the smoke tests will move in a follow-up PR.🤖 Generated with Claude Code