Repository navigation
Add Roslyn PR tagger GitHub App secret - #17783
missymessa merged 2 commits into
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: d26282b8-9273-4e0e-84d9-c1998140bef1
There was a problem hiding this comment.
🔵 Needs a closer look
Human review is required to verify the privileged GitHub App’s identity, permissions, repository installation scope, and secret-scoped WIF access, which the manifest alone cannot establish.
No open issues 🎉
What changed in this PR
Adds the Roslyn issue-tagger GitHub App secret declaration to the EngKeyVault manifest for Secret Manager projections. Projection initialization, app installation, and access grants remain rollout follow-ups.
Changes:
- Declares
dotnet-roslyn-issue-taggeras agithub-app-secret. - Requests only a private key, with webhook and OAuth secrets disabled.
| File | Description |
|---|---|
.vault-config/product-builds-engkeyvault.yaml |
Adds the issue-tagger app’s private-key-only secret declaration. |
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Human owner review is required before merge to verify the external GitHub App identity, permissions and repository scope, Secret Manager projections, and secret-scoped WIF access that the manifest alone cannot establish.
No open issues 🎉
Review effort: Balanced
## Summary - Replace the PR tagger PAT input with a short-lived installation token for `dotnet Roslyn Issue Tagger` (App ID 5701303). - Check out the repository for the shared Arcade script, and use `@self` so the token template resolves correctly beneath the external 1ES extends template. - Keep the existing PAT mapping unchanged until the actual tagger succeeds with the App token. ## Provisioning verified - Secret Manager manifest merged: dotnet/arcade#17783. - Initialized App credential projections in EngKeyVault through Secret Manager, including rotation metadata. - Existing `Roslyn PRTagger: DevDiv` WIF principal has Secrets User only on the two exact App credential secret scopes; no vault-wide grant. - Stored credentials authenticate as the expected App, with Issues write and Metadata read. - Installation 180677353 contains exactly `dotnet/roslyn` and `dotnet/fsharp`; installation-token issue searches passed on both. Temporary token revoked; local key copy removed. - Ownership transfer to `dotnet` is requested but still pending acceptance; current owner remains `dotnet-bot`. ## Validation - YAML parsing, required-template-parameter/path assertions, checkout/token-binding checks and `git diff --check` pass. - Actual consumer pipeline 1333 dry-run compilation with this PR YAML succeeds and includes token minting and tagger tasks. The dry run does not execute the tagger. - Isolated WIF canary [3132307](https://dev.azure.com/dnceng/internal/_build/results?buildId=3132307) **succeeded**: actual tagger WIF identity -> both exact Key Vault secret scopes -> shared Arcade helper -> installation token -> exact repository scope and successful issue searches on both repositories. Token revoked afterward. No issues created or changed. - Canary compilation caught the missing `@self` qualifier; corrected in e827602. ## Remaining gates Keep this PR draft pending human review and explicit production rollout authorization. Full tagger execution/issue creation is not yet validated. No production pipeline run or merge was performed. After an explicitly authorized rollout, verify the actual consumer succeeds before removing the PAT mapping or revoking the PAT; first confirm no remaining consumers. Related: https://dev.azure.com/dnceng/internal/_workitems/edit/12159. Canary cleanup verified: scratch repository deleted, pipeline 1722 disabled, and scratch endpoint/agent-queue authorizations revoked. Successful run retained as evidence.
Summary
Validation
git diff --checkpasses.Follow-up before rollout
Related: dnceng/internal work item 12159. Draft: requires human review before merge.