Skip to content

ci: stop retaining checkout credentials during builds - #1959

Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
mainfrom
cleanup/ci-checkout-credentials-d40b7de9
Nov 27, 2026
Merged

Dmitriy Vasyura (dmitrivMS) merged 1 commit into
mainfrom
cleanup/ci-checkout-credentials-d40b7de9

Conversation

@dmitrivMS

Copy link
Copy Markdown
Contributor

The build needs read access to check out the repository, but no install, compile, lint, or test step needs authenticated Git access afterward. Disable credential persistence so the checkout token is not left in local Git configuration while those steps run.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added the debt Code quality issues label Nov 27, 2026
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added this to the 1.149.0 milestone Nov 27, 2026
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) marked this pull request as ready for review November 27, 2026 07:26
Copilot AI balanced review requested due to automatic review settings November 27, 2026 07:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the change disabling checkout credential persistence in the build workflow.

No open issues 🎉

What changed in this PR

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

Changes:

  • Sets persist-credentials: false on actions/checkout, preserving repository checkout access without retaining the token in local Git configuration.
File Description
.github/​workflows/​build.yml Disables credential persistence for the checkout step.

Review effort: Balanced

@dmitrivMS
Dmitriy Vasyura (dmitrivMS) merged commit 082e3b6 into main Nov 27, 2026
11 checks passed
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) deleted the cleanup/ci-checkout-credentials-d40b7de9 branch November 27, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Code quality issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants