Skip to content

Strengthen workflow run verification - #57005

Merged
nagilson merged 2 commits into
dotnet:mainfrom
nagilson:marcpopMSFT-fixworkflow
Nov 9, 2026
Merged

nagilson merged 2 commits into
dotnet:mainfrom
nagilson:marcpopMSFT-fixworkflow

Conversation

@nagilson

@nagilson nagilson commented Nov 9, 2026

Copy link
Copy Markdown
Member

marcpopMSFT and others added 2 commits November 5, 2026 15:08
Closes the check-then-write window in validate-change-archive.py: the leaf
is opened with O_NOFOLLOW so a symlink swapped in after the per-component
islink checks fails with ELOOP instead of being followed.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 18:40
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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

No active review issues are recorded for the workflow and archive-extraction hardening changes.

No open issues 🎉

What changed in this PR

This PR hardens the .NET SDK’s automated maintenance workflows against Git hook execution and writes through destination symlinks.

Changes:

  • Disable Git hooks when pushing localization, static web asset baseline, and completion updates.
  • Reject destination symlinks, including parent directories, when copying validated archive contents.
  • Open destination files with O_NOFOLLOW to prevent following leaf symlinks.
File Description
.github/​workflows/​update-xlf-on-comment.yml Disable hooks during localization update pushes.
.github/​workflows/​update-static-web-assets-baselines.yml Disable hooks during baseline update pushes.
.github/​workflows/​fix-completions-on-comment.yml Disable hooks during completion update pushes.
.github/​scripts/​validate-change-archive.py Add destination symlink checks and no-follow file writes.

Review effort: Balanced

@nagilson
nagilson merged commit 75d1695 into dotnet:main Nov 9, 2026
15 checks passed
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