fix: remove deprecated GitHubOAuth connector creation from apply-extras#228
Merged
Merged
Conversation
The platform deprecated the GitHubOAuth connector type in build 26.4.216.0
(April 2026). The connector status endpoint now hardcodes it as 'Disconnected'
with message 'This OAuth connector type is deprecated, please remove.'
The actual GitHub auth is stored via /api/v2/github/domains (OAuth flow or PAT).
Code repos (/api/v2/repos/{name}) use that auth directly without needing a
separate connector record.
Changes:
- Remove PUT /api/v2/extendedAgent/connectors/github (both bash and PS1)
- Use PUT /api/v2/github/domains/github_com for GITHUB_PAT path
- Update OAuth status check from v1 auth/status to v2 github/domains
- Remove fallback check against deprecated connector list
- Keep OAuth browser flow and repo wiring unchanged
The ParseFile() return value (AST) was being sent to stdout, causing the syntax check to report every .ps1 file as failed. Adding $null = suppresses the output so only actual parse errors are reported.
…connectors - assemble-agent.sh: .md files in data/ now go into 'knowledge' array (uploaded via /api/v1/AgentMemory/upload) instead of 'knowledgeItems' (which creates ARM KnowledgeText connectors) - export-agent.sh: KnowledgeText items exported as plain .md files in data/ so they round-trip correctly through assemble → deploy
RobiladK
approved these changes
Jun 22, 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.
Problem
The platform deprecated the
GitHubOAuthconnector type in build 26.4.216.0 (April 2026). The connector status endpoint now hardcodes it as Disconnected with message:This causes the portal to show a permanent "github (Disconnected)" ghost row that cannot be deleted via any API.
Root Cause
apply-extras.shandApply-Extras.ps1were callingPUT /api/v2/extendedAgent/connectors/githubwithdataConnectorType: GitHubOAuth— a type the platform now rejects.Fix
PUT /api/v2/extendedAgent/connectors/githubfrom both bash and PowerShellPUT /api/v2/github/domains/github_comfor the optional GITHUB_PAT path/api/v1/Github/auth/statusto/api/v2/github/domains/api/v1/Github/configto/api/v2/github/oauth/configTesting
Deployed a new agent (
dt-v2) using the dynatrace-servicenow recipe with this fix. GitHub OAuth completed successfully, repo was wired, and no ghost "Disconnected" connector appears in the portal.