Skip to content

Merge main into live - #13068

Merged
gewarren merged 5 commits into
livefrom
main
Sep 17, 2026
Merged

gewarren merged 5 commits into
livefrom
main

Conversation

@dotnet-policy-service

@dotnet-policy-service dotnet-policy-service Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Please don't squash-merge this PR.


Internal previews

Toggle expand/collapse
File Preview link
snippets/csharp/System.Diagnostics.SymbolStore/ISymbolDocumentWriter/Overview/modulebuilder_definedocument.cs Learn preview
snippets/csharp/System.Diagnostics/BooleanSwitch/Enabled/source.cs Learn preview
snippets/csharp/System.Diagnostics/BooleanSwitch/Overview/source.cs Learn preview
snippets/csharp/System.Diagnostics/ConditionalAttribute/Overview/cas.cs Learn preview
snippets/csharp/System.Diagnostics/ConsoleTraceListener/Overview/program.cs Learn preview
snippets/csharp/System.Diagnostics/CorrelationManager/Overview/program.cs Learn preview
snippets/csharp/System.Diagnostics/CounterCreationData/.ctor/diagnostics_countercreationdata.cs Learn preview
snippets/csharp/System.Diagnostics/CounterCreationData/Overview/averagecount32.cs Learn preview
snippets/csharp/System.Diagnostics/CounterCreationDataCollection/.ctor/countercreationdatacollection_ctor_countercreationdatacollection.cs Learn preview
snippets/csharp/System.Diagnostics/CounterCreationDataCollection/.ctor/countercreationdatacollection_ctor.cs Learn preview
snippets/csharp/System.Diagnostics/CounterCreationDataCollection/AddRange/countercreationdatacollection_addrange.cs Learn preview
snippets/csharp/System.Diagnostics/CounterCreationDataCollection/Contains/countercreationdatacollection_contains.cs Learn preview
snippets/csharp/System.Diagnostics/CounterCreationDataCollection/IndexOf/countercreationdatacollection_insert_indexof.cs Learn preview
snippets/csharp/System.Diagnostics/CounterSample/.ctor/countersample_ctor_2.cs Learn preview
snippets/csharp/System.Diagnostics/DataReceivedEventArgs/Overview/datareceivedevent.cs Learn preview
snippets/csharp/System.Diagnostics/DataReceivedEventArgs/Overview/net_async.cs Learn preview
snippets/csharp/System.Diagnostics/DataReceivedEventArgs/Overview/nmake_async.cs Learn preview
snippets/csharp/System.Diagnostics/DataReceivedEventArgs/Overview/sort_async.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/Assert/source.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/Assert/source1.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/Assert/source2.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/Close/source.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/Fail/source.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/Fail/source1.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/Indent/source.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/Overview/source.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/Write/source.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteIf/source.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteIf/source1.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteIf/source2.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteIf/source3.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteLine/source.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteLine/source1.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteLine/source2.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteLine/source3.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteLineIf/source.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteLineIf/source1.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteLineIf/source2.cs Learn preview
snippets/csharp/System.Diagnostics/Debug/WriteLineIf/source3.cs Learn preview
snippets/csharp/System.Diagnostics/DebuggerBrowsableAttribute/.ctor/program.cs Learn preview
snippets/csharp/System.Diagnostics/DefaultTraceListener/Overview/binomial.cs Learn preview
snippets/csharp/System.Diagnostics/DefaultTraceListener/Write/defaulttracelistener.cs Learn preview
snippets/csharp/System.Diagnostics/EntryWrittenEventArgs/.ctor/entrywritteneventargs_ctor2.cs Learn preview
snippets/csharp/System.Diagnostics/EntryWrittenEventArgs/Overview/entrywritteneventargs_ctor1.cs Learn preview
snippets/csharp/System.Diagnostics/EventInstance/Overview/source.cs Learn preview
snippets/csharp/System.Diagnostics/EventLog/.ctor/source.cs Learn preview
snippets/csharp/System.Diagnostics/EventLog/.ctor/source1.cs Learn preview
snippets/csharp/System.Diagnostics/EventLog/.ctor/source2.cs Learn preview
snippets/csharp/System.Diagnostics/EventLog/Clear/source.cs Learn preview
snippets/csharp/System.Diagnostics/EventLog/CreateEventSource/source.cs Learn preview

Note

This table shows the first 50 preview links (sorted alphabetically by file path) found in the OPS build report. For the full list, select OpenPublishing.Build Details within checks.

Build report

gewarren and others added 4 commits September 15, 2026 20:06
Bumps the github-actions group with 4 updates: [step-security/harden-runner](https://github.com/step-security/harden-runner), [actions/github-script](https://github.com/actions/github-script), [actions/checkout](https://github.com/actions/checkout) and [actions/setup-dotnet](https://github.com/actions/setup-dotnet).


Updates `step-security/harden-runner` from 2.10.4 to 2.21.1
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](step-security/harden-runner@v2.10.4...e14015d)

Updates `actions/github-script` from 7.0.1 to 9.0.0
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](actions/github-script@60a0d83...3a2844b)

Updates `actions/checkout` from 2.8.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2.8.0...3d3c42e)

Updates `actions/setup-dotnet` from 5.3.0 to 6.0.0
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](actions/setup-dotnet@9a946fd...a98b568)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-version: 2.21.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: actions/github-script
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-dotnet
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
… (#13072)

* employees snippet: use parameterized SQL for PopulateSales

Follow-up to PR #12524 (review comment on employees.cs). The PopulateSales method concatenated the `EmployeeId` cell value into a `SELECT ... WHERE EmployeeId = ` literal, so an untrusted cell value could produce SQL injection. Use a SqlParameter and a matching `@EmployeeId` placeholder instead.

The parameterless `Populate` overload is kept for the existing call sites; a new `params SqlParameter[]` overload backs the parameterized call and forwards to the same connection/adapter path.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ef73ba66-2734-45b8-ab5b-243681f0e519

* Add Project.csproj so CellContentClick snippet builds in CI

The employees.cs snippet had no project file, so touching it fails the Snippets 5000 pipeline with CS0234/CS0246 for the System.Windows.Forms and System.Data.SqlClient types it references. Add a net10.0-windows project mirroring the sibling DataGridView\BeginEdit project, plus a System.Data.SqlClient PackageReference.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ef73ba66-2734-45b8-ab5b-243681f0e519

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ef73ba66-2734-45b8-ab5b-243681f0e519
…13062)

* Initial plan

* Fix FileStream bufferSize docs for FileOptions ctor

Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>

* Clarify FileStream bufferSize=0 version behavior

Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>

* Clarify bufferSize=1 disables FileStream buffering

Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>

* Update bufferSize parameter documentation

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Remove out-of-support version notes from bufferSize docs

Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>
Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@gewarren
gewarren merged commit bf6c4a5 into live Sep 17, 2026
7 of 8 checks passed
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.

3 participants