Skip to content

Switch auto-answer-issues workflow from OpenAI.com to Azure OpenAI#5843

Merged
trwalke merged 2 commits intotrwalke/addGhActionForIssuesfrom
copilot/sub-pr-5836-one-more-time
Mar 11, 2026
Merged

Switch auto-answer-issues workflow from OpenAI.com to Azure OpenAI#5843
trwalke merged 2 commits intotrwalke/addGhActionForIssuesfrom
copilot/sub-pr-5836-one-more-time

Conversation

Copy link
Contributor

Copilot AI commented Mar 11, 2026

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

  • Replace OPENAI_API_KEY secret with three Azure-scoped secrets: AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_DEPLOYMENT
  • Swap new OpenAI({ apiKey }) for new AzureOpenAI({ apiKey, endpoint, deployment, apiVersion }) using the AzureOpenAI named export from the same openai npm package — no new dependencies
  • Pin API version to "2024-12-01-preview" as a static env var
  • Add discrete validation checks for each of the three required Azure secrets
  • Update inline comment: "OpenAI-backed responder" → "Azure OpenAI-backed responder"

Issue content now flows only to the org's own Azure OpenAI resource.

Testing
No automated tests apply to workflow files. Manually verified the AzureOpenAI constructor signature accepts deployment (not deploymentName) and that passing the deployment name as model in chat.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

  • All relevant documentation is updated.

🔒 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.

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
@trwalke trwalke marked this pull request as ready for review March 11, 2026 21:14
@trwalke trwalke requested a review from a team as a code owner March 11, 2026 21:14
@trwalke trwalke merged commit 01c8f04 into trwalke/addGhActionForIssues Mar 11, 2026
3 checks passed
@trwalke trwalke deleted the copilot/sub-pr-5836-one-more-time branch March 11, 2026 21:14
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