Skip to content

Restore GitHub credential for promotion validation - #17568

Merged
missymessa merged 1 commit into
mainfrom
fix/restore-promotion-github-credential
Sep 17, 2026
Merged

missymessa merged 1 commit into
mainfrom
fix/restore-promotion-github-credential

Conversation

@missymessa

Copy link
Copy Markdown
Member

Summary

  • restore the Arcade-Promotion-GitHub variable group to Arcade promotion validation
  • pass BotAccount-dotnet-maestro-bot-PAT to darc update-dependencies again
  • document that the credential is required for common-script retrieval as well as dependency metadata

Production failure

PR #17567 removed the credential after a controlled older-build test succeeded. The first official build from its merge commit, build 3077777, exercised a path that test did not cover.

Validate promotion with the newly built Arcade failed while applying dependency updates:

Microsoft.DotNet.DarcLib.DarcException: GitHub personal access token is required for this operation.
...
GitHubClient.GetFilesAtCommitAsync
Remote.GetCommonScriptFilesAsync
Local.UpdateDependenciesAsync

The absence of CoherentParentDependency entries therefore does not make this operation credential-free.

Validation

  • PowerShell parser reports no syntax errors in eng/validation/validate-promotion.ps1
  • git diff --check passes
  • confirmed the variable group, secret argument, mandatory script parameter, and --github-pat argument are wired end to end

The regression scenario is internal-only and cannot run in PR validation. After merge, the official build must run Validate promotion (newly built Arcade) against the newly produced BAR build and complete the common-script retrieval and dependency-application path that failed in build 3077777.

This is an immediate recovery. AB#12416 remains in Dev to replace the PAT with a purpose-built, least-privilege GitHub App installation token before variable group 238 is removed.

AB#12416

Darc retrieves common scripts from GitHub while applying dependency updates, even when Arcade has no coherent dependencies.

Co-authored-by: Copilot <[email protected]>
Copilot AI lite review requested due to automatic review settings September 16, 2026 15:46
@missymessa
missymessa enabled auto-merge (squash) September 16, 2026 15:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The PAT must be passed without exposing it in command-line arguments.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Restores GitHub authentication for promotion validation and darc update-dependencies.

Changes:

  • Restores the Arcade-Promotion-GitHub variable group.
  • Passes the GitHub PAT through validation to Darc.
File summaries
File Summary
eng/validation/validate-promotion.ps1 Adds the PAT parameter and forwards it to Darc; critical finding: the token is exposed in process arguments (1 vote).
eng/validate-promotion.yml Wires the variable group secret into the pipeline; critical finding: the token is exposed in command-line arguments (1 vote).
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread eng/validate-promotion.yml Resolved
Comment thread eng/validation/validate-promotion.ps1 Resolved
@missymessa
missymessa merged commit 8b8d291 into main Sep 17, 2026
11 of 13 checks passed
@missymessa
missymessa deleted the fix/restore-promotion-github-credential branch September 17, 2026 14:46
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 18, 2026
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.

3 participants