Justin Chung
62c12ee7e5
Merged PR 38882: Merged PR 38690: Update MaxVisitCount and MaxHashtableKeyCount if visitor saf...
...
Merged PR 38690: Update MaxVisitCount and MaxHashtableKeyCount if visitor safe value context indicates SkipLimitCheck is true
----
#### AI description (iteration 1)
#### PR Classification
Bug fix that updates the safe value checks by dynamically adjusting limit values based on the visitor context to improve security.
#### PR Summary
This pull request refactors the safe value visitor logic to replace hard-coded limit constants with context-driven readonly fields and adjusts the conditional checks accordingly. It also adds a test to verify that insecure psd1 files correctly fail when the -SkipLimitCheck parameter is used.
- `src/System.Management.Automation/engine/parser/SafeValues.cs`: Replaces constant limits with dynamic fields (_maxVisitCount and _maxHashtableKeyCount) set based on the safe value context, and updates conditional checks to use these fields.
- `test/powershell/Modules/Microsoft.PowerShell.Utility/PowerShellData.tests.ps1`: Adds a test case to ensure that insecure psd1 files trigger an error when -SkipLimitCheck is applied.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Related work items: #163511
2026-03-10 17:45:10 +00:00
Travis Plunk and PowerShell GitHub Bot
47b09db64f
[release/v7.4] Update SDK to 8.0.418 ( #26880 )
...
Co-authored-by: PowerShell GitHub Bot <pwshbot@microsoft.com >
2026-02-23 16:14:41 -05:00
Aditya Patwardhan and Dongbo Wang
44f2ffebce
[release/v7.4] Skip the flaky Update-Help test for the PackageManagement module ( #26871 )
...
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2026-02-20 22:50:32 +00:00
Travis Plunk
f9cd7d98c6
[release/v7.4] Fix $PSDefaultParameterValues leak causing tests to skip unexpectedly ( #26869 )
2026-02-20 22:41:08 +00:00
PowerShell Team Bot
e41290f5d3
[release/v7.4] Update SDK to 8.0.417 ( #26778 )
2026-02-20 10:01:10 -08:00
06efedb2ea
[release/v7.4] Mark flaky Update-Help web tests as pending to unblock CI ( #26805 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com >
2026-02-13 13:59:30 -05:00
Travis Plunk and Dongbo Wang
84c8a2d3ac
[release/v7.4] Update the Update-Help tests to use -Force to remove read-only files ( #26786 )
...
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2026-02-13 11:44:40 -05:00
8bd316fb35
[release/v7.4] Fix macOS preview package identifier detection to use version string ( #26774 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com >
2026-02-10 17:44:00 +00:00
Travis Plunk and Copilot
ed9733e874
[release/v7.4] Update the macos package name for preview releases to match the previous pattern ( #26435 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-10 12:24:44 -05:00
Travis Plunk
7a63d92aa1
[release/v7.4] Improve ADO package build and validation across platforms ( #26405 )
2025-11-10 11:01:52 -08:00
61c4d47936
[release/v7.4] Fix merge conflict checker for empty file lists and filter *.cs files ( #26387 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com >
2025-11-05 10:50:58 -08:00
Travis Plunk and Copilot
a659c791af
[release/v7.4] Remove usage of fpm for DEB package generation ( #26382 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
2025-11-05 09:18:02 -08:00
84af2bf70b
[release/v7.4] Add merge conflict marker detection to linux-ci workflow and refactor existing actions to use reusable get-changed-files action ( #26362 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2025-11-04 00:40:29 +00:00
e92277859a
[release/v7.4] Replace fpm with native rpmbuild for RPM package generation ( #26337 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2025-11-03 12:23:24 -08:00
PowerShell Team Bot
33f7ce709c
[release/v7.4] Update branch for release ( #26194 )
2025-10-15 01:50:49 +00:00
PowerShell Team Bot
3dca89f37a
[release/v7.4] Mark the 3 consistently failing tests as pending to unblock PRs ( #26197 )
2025-10-14 18:18:03 -07:00
PowerShell Team Bot
010da3a003
[release/v7.4] Suppress false positive PSScriptAnalyzer warnings in tests and build scripts ( #26058 )
2025-10-09 15:54:03 -07:00
PowerShell Team Bot
3b631f39b7
[release/v7.4] Ensure that socket timeouts are set only during the token validation ( #26080 )
2025-10-09 13:02:48 -07:00
Travis Plunk (HE/HIM)
6a3d53da00
Fix race condition in RemoteHyperVSocket
2025-09-09 17:17:29 -07:00
PowerShell Team Bot
ba9892bfe6
[release/v7.4] Update SDK to 8.0.413 ( #25993 )
2025-09-06 00:43:51 +00:00
Patrick Meinecke
e94aaa8a4e
Manually update SqlClient in TestService
...
The version bump from 4.8.6 to 4.9.0 is required for
Microsoft.Windows.Compatibility 8.0.17
2025-06-10 20:22:04 -04:00
PowerShell GitHub Bot
78bc3c8fca
Update package references
2025-06-10 20:22:04 -04:00
PowerShell Team Bot and Justin Chung
e20478260d
[release/v7.4] Update branch for release ( #25518 )
...
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com >
2025-05-06 14:18:36 -05:00
PowerShell Team Bot
edebf003fa
[release/v7.4] Update branch for release ( #25101 )
2025-03-12 21:49:51 +00:00
PowerShell Team Bot
1b0488cd28
[release/v7.4] Update branch for release - Transitive - true - minor ( #25085 )
2025-02-25 13:24:51 -08:00
PowerShell Team Bot and Travis Plunk
b70bb41fac
[release/v7.4] Update branch for release - Transitive - true - minor ( #24884 )
...
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2025-02-11 14:39:34 -08:00
PowerShell Team Bot
e8d527609b
[release/v7.4] Update branch for release - Transitive - true - minor ( #24806 )
...
* Update .NET SDK to latest version
* Update package references
2025-01-17 01:05:36 +00:00
624d479add
[release/v7.4] Update branch for release - Transitive - true - minor ( #24546 )
...
* Update .NET SDK to latest version
* Update package references
* 7.4.6 isn't working for this test.
* try to fix named pipe test again
* Revert "try to fix named pipe test again"
This reverts commit 0966c6428f .
* Revert "7.4.6 isn't working for this test."
This reverts commit 238e3fc551 .
* Revert one change to get the bulk of the updates
* Update test/tools/NamedPipeConnection/src/code/Microsoft.PowerShell.NamedPipeConnection.csproj
---------
Co-authored-by: Travis Plunk <github@ez13.net >
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2024-11-05 10:01:50 -08:00
Travis Plunk
37ef282738
[release/v7.4] Fix backport mistake in #24429 ( #24545 )
2024-11-04 14:34:14 -08:00
Travis Plunk
72f8c58e6f
Add a way to use only NuGet feed sources ( #24528 ) ( #24542 )
...
* Update build.psm1
* update default feeds
* fix issue with cgmanifest having duplicate existing entries
* update pattern
2024-11-04 13:38:37 -08:00
Aditya Patwardhan
b8d6c9bbfc
Update and add new NuGet package sources for different environments. ( #24264 ) ( #24440 )
2024-10-15 15:55:17 -07:00
Aditya Patwardhan
9e9fe79f09
[release/v7.4] Fixes to Azure Public feed usage ( #24429 )
2024-10-15 15:12:08 -07:00
Aditya Patwardhan
dd27b1a115
[release/v7.4] Make Microsoft feeds the default ( #24426 )
2024-10-15 12:06:01 -07:00
Aditya Patwardhan
99c673d3fe
Bump to .NET 8.0.403 and update dependencies ( #24405 )
2024-10-12 00:32:28 +00:00
Dongbo Wang and James Truher [MSFT]
a98134062d
Rewrite the mac syslog tests to make them less flaky ( #21174 ) ( #24152 )
...
Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com >
2024-08-14 09:53:47 -07:00
Dongbo Wang
4c5805da9a
Update .NET SDK to 8.0.400 ( #24151 )
2024-08-14 07:34:23 -07:00
Dongbo Wang and CarloToso
35994915e6
Fix WebCmdlets when -Body is specified but ContentType is not ( #23952 ) ( #24145 )
...
Co-authored-by: CarloToso <105941898+CarloToso@users.noreply.github.com >
2024-08-13 16:06:06 -07:00
Dongbo Wang
d2a0a0a477
Remember installation options and used them to initialize options for the next installation ( #20420 ) ( #24143 )
2024-08-13 15:06:08 -07:00
Aditya Patwardhan
45d9990c1d
Merged PR 31780: Resolve paths correctly when importing files or files referenced in the module manifest
2024-07-16 16:00:38 +00:00
Aditya Patwardhan
a0bf209924
Expand ~ to $home on Windows with tab completion ( #21529 ) ( #23934 )
2024-06-11 16:16:32 -07:00
Aditya Patwardhan and Steve Lee
dc60e20cfb
Fix Test-Path -IsValid to check for invalid path and filename characters ( #21358 ) ( #23931 )
...
Co-authored-by: Steve Lee <slee@microsoft.com >
2024-06-11 16:05:59 -07:00
Aditya Patwardhan
f3ab30f917
[StepSecurity] Apply security best practices ( #21480 ) ( #23916 )
2024-06-11 13:35:51 -07:00
Aditya Patwardhan
3ce794d1e4
Make sure both stdout and stderr can be redirected from a native executable ( #20997 ) ( #23911 )
2024-06-11 10:03:26 -07:00
Patrick Meinecke
89c9bb64ef
Merged PR 30659: Backport #21238 , #21239 , #21408 , #21415 - and update SDK + dependencies
...
and cgmanifest
2024-04-05 19:47:03 +00:00
Patrick Meinecke and Steve Lee
b0692c1f07
[release/v7.4.2] Revert "Adjust PUT method behavior to POST one for default content type in WebCmdlets" ( #21049 ) ( #21428 )
...
Co-authored-by: Steve Lee <slee@microsoft.com >
2024-04-05 10:55:17 -07:00
Patrick Meinecke
c16cfe8f87
[release/v7.4.2] Fix regression -Tail 0 -Wait ( #20734 ) ( #21418 )
2024-04-04 15:24:35 -07:00
Patrick Meinecke
3dd4451360
[release/v7.4.2] Revert the PR #17856 (Do not preserve temporary results when no need to do so) ( #21368 ) ( #21425 )
2024-04-04 15:23:22 -07:00
Patrick Meinecke
200ac639e1
[release/v7.4.2] Make sure the assembly/library resolvers are registered at early stage ( #21361 ) ( #21424 )
2024-04-04 15:23:05 -07:00
Patrick Meinecke
0e4b9d74f3
[release/v7.4.2] Fix PowerShell class to support deriving from an abstract class with abstract properties ( #21331 ) ( #21422 )
2024-04-04 15:22:35 -07:00
Patrick Meinecke
73865ce253
[release/v7.4.2] Fix the regression when doing type inference for $_ ( #21223 ) ( #21421 )
2024-04-04 15:22:20 -07:00