← Back to Pull requests

chore: publish VS Code extension with managed identity #2001

Closed
unknown closed this pull request without merging on Sep 04, 2026 13:19 UTC
View on GitHub
unknown unknown commented on Sep 04, 2026 08:55 UTC
Author

Replaces the Azure DevOps PAT used for VS Code Marketplace publishing with short-lived Azure Managed Identity credentials obtained through GitHub Actions OIDC.

Changes

  • Marketplace authentication: Grants publish-marketplace job-scoped id-token: write, signs in through pinned azure/login using repository secrets, and publishes with vsce --azure-credential.

  • Federation boundary: Rejects manual release workflows launched from anything other than main, matching the managed identity's branch-bound federated credential while preserving the existing source ref input for trusted patch releases.

  • Operations documentation: Documents managed identity creation, GitHub federation, Marketplace publisher authorization, secret configuration, rollout verification, and removal of the obsolete Azure PAT secret.

  • Local configuration: Removes the obsolete Azure PAT entry from the VS Code extension environment sample.
  • Why

    Long-lived Azure DevOps PATs create rotation and exposure risk in the release path. Workload identity federation gives each release a short-lived credential without moving publishing away from GitHub Actions or introducing a PAT fallback.

    The Marketplace identity has no Azure RBAC assignment; azure/login uses allow-no-subscriptions: true because publishing only needs an Entra token for Marketplace. Open VSX publishing remains unchanged and continues to use OPEN_VSX_ACCESS_TOKEN.

    Verification

  • actionlint .github/workflows/release.yml

  • prettier --check .github/workflows/release.yml docs/ci-cd.md

  • git diff --check

  • Confirmed AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN and VSCE_PAT are absent from the release workflow and environment sample

  • Confirmed the Open VSX publishing block is unchanged
  • External Azure federation, Marketplace membership, and the AZURE_CLIENT_ID and AZURE_TENANT_ID repository secrets must be configured before running the first release.

    Diff: 243 lines (+182 / -61) across 3 files Reviewer: StevenMcClankerton Review duration: 263m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 243 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.329
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2001"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 38.8% (MEDIUM) · Higher = larger blast radius
    38.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.3% · Safe to merge
    15.3%