Skip to content

CI: Do not persist checkout credentials during Copilot setup - #9233

Merged
Dmitriy Vasyura (dmitrivMS) merged 4 commits into
mainfrom
cleanup/copilot-setup-credentials-e6334148
Nov 27, 2026
Merged

Dmitriy Vasyura (dmitrivMS) merged 4 commits into
mainfrom
cleanup/copilot-setup-credentials-e6334148

Conversation

@dmitrivMS

@dmitrivMS Dmitriy Vasyura (dmitrivMS) commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Copilot setup needs read access to check out the repository. Its remaining steps install public packages and download VS Code type definitions; none needs authenticated Git access. Disable credential persistence on checkout so those steps do not inherit its token.

Read isAgentManaged from current VS Code hosts and preserve the agent window behavior on 1.148, which exposes the previous name.

Co-authored-by: Copilot <[email protected]>
Keep the upstream agent workspace API migration and drop the superseded branch-only helper and tests.

Co-authored-by: Copilot <[email protected]>
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) marked this pull request as ready for review November 27, 2026 12:35
Copilot AI balanced review requested due to automatic review settings November 27, 2026 12:35

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.

🟢 Approval recommended

There are no active review issues for the change disabling checkout credential persistence.

No open issues 🎉

What changed in this PR

This PR hardens the Copilot setup workflow by preventing checkout credentials from remaining available to subsequent setup steps.

Changes:

  • Sets persist-credentials: false on checkout, preserving authenticated repository checkout without retaining its token for later steps.
File Description
.github/​workflows/​copilot-setup-steps.yml Disables credential persistence for the checkout action.

Review effort: Balanced

@dmitrivMS
Dmitriy Vasyura (dmitrivMS) merged commit 0f1375c into main Nov 27, 2026
7 checks passed
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) deleted the cleanup/copilot-setup-credentials-e6334148 branch November 27, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants