Switch auto-answer-issues workflow from OpenAI.com to Azure OpenAI#5843
Merged
trwalke merged 2 commits intotrwalke/addGhActionForIssuesfrom Mar 11, 2026
Merged
Conversation
Co-authored-by: trwalke <30090357+trwalke@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [WIP] Address feedback on GitHub Actions workflow for auto-answering issues
Switch auto-answer-issues workflow from OpenAI.com to Azure OpenAI
Mar 11, 2026
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.
GitHub issues can contain MSAL logs and business-sensitive data. The workflow was forwarding this content to OpenAI.com — a third-party endpoint — violating the repo's guidance to keep sensitive data off third-party AI services.
Changes proposed in this request
OPENAI_API_KEYsecret with three Azure-scoped secrets:AZURE_OPENAI_API_KEY,AZURE_OPENAI_ENDPOINT,AZURE_OPENAI_DEPLOYMENTnew OpenAI({ apiKey })fornew AzureOpenAI({ apiKey, endpoint, deployment, apiVersion })using theAzureOpenAInamed export from the sameopenainpm package — no new dependencies"2024-12-01-preview"as a static env varIssue content now flows only to the org's own Azure OpenAI resource.
Testing
No automated tests apply to workflow files. Manually verified the
AzureOpenAIconstructor signature acceptsdeployment(notdeploymentName) and that passing the deployment name asmodelinchat.completions.create()is the correct Azure OpenAI pattern — the deployment name is encoded in both the URL path and the request body.Performance impact
None.
Documentation
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.