Commit Graph
10616 Commits
Author SHA1 Message Date
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
Justin Chung 2a4949b20a [release/v7.4] Hardcode Official templates (#26928) (#26962) 2026-03-09 16:23:31 -05:00
7d39838fa5 [release/v7.4] Split TPN manifest and Component Governance manifest (#26891) (#26961)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-09 16:23:19 -05:00
db2ae08534 [release/v7.4] Correct the package name for .deb and .rpm packages (#26877) (#26960)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2026-03-09 21:03:33 +00:00
Justin Chungandcrazyjncsu 8439a5514a [release/v7.4.14] Fix PSMethodInvocationConstraints.GetHashCode method (#24965) (#26959)
Co-authored-by: crazyjncsu <j@thewolfweb.com>
2026-03-09 19:43:30 +00:00
Justin Chung 66787729ef [release/v7.4.14] Bring over all changes for MSIX packaging template (#26932) (#26933) 2026-03-02 16:24:12 -06:00
b5180d4644 [release/v7.4.14] .NET Resolution and Store Publishing Updates (#26930)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2026-03-02 15:16:08 -06:00
Aditya Patwardhan f0949a0e81 [release/v7.4.14] [release/v7.4] Merge the v7.6.0-preview.5 release branch back to master (#26927) 2026-03-02 15:39:40 -05:00
16ca584990 [release/v7.4.14] Bring Release Changes from v7.6.0-preview.6 (#26911)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
2026-02-26 21:54:20 +00:00
Travis Plunk ac0b6180c0 [release/v7.4.14] Update ThirdParty notices (#26892) 2026-02-25 14:11:12 -05:00
Travis Plunk 22dd459f43 [release/v7.4] Update Application Insights package version to 2.23.0 (#26883) 2026-02-23 22:29:39 +00:00
Travis PlunkandPowerShell 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
Travis PlunkandAditya Patwardhan bf6bd6c56d [release/v7.4] Update metadata.json to update the Latest attribute with a better name (#26872)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2026-02-23 13:24:35 -05:00
Aditya PatwardhanandDongbo 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
Travis Plunk 510db2d7a6 [release/v7.4] Update Get-ChangeLog to handle backport PRs correctly (#26870) 2026-02-20 14:30:33 -08:00
b12bd896a1 [release/v7.4] Remove unused runCodesignValidationInjection variable from pipeline templates (#26868)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
2026-02-20 17:28:01 -05:00
Travis Plunk 400e22e3fe [release/v7.4] Refactor: Centralize xUnit tests into reusable workflow and remove legacy verification (#26864) 2026-02-20 13:51:33 -08:00
Travis PlunkandJustin Chung 383a4c5c79 [release/v7.4] Fix buildinfo.json uploading for preview, LTS, and stable releases (#26863)
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
2026-02-20 10:29:11 -08:00
Travis Plunk b827288303 [release/v7.4] Add GitHub Actions annotations for Pester test failures (#26800) 2026-02-20 10:04:33 -08: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 PlunkandDongbo 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 PlunkandCopilot 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 c2057ed183 [release/v7.4] Fix condition syntax for StoreBroker package tasks in MSIX pipeline (#26434) 2026-02-10 11:23:35 -06:00
Travis Plunk b1ea1901ed [release/v7.4] Fix template path for rebuild branch check in package.yml (#26433) 2026-02-10 11:22:11 -06:00
Travis PlunkandCopilot 5efa21e1f0 [release/v7.4] Add rebuild branch support with conditional MSIX signing (#26418)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-11 13:30:28 -08:00
Travis Plunk d0ae31b7b6 [release/v7.4] Move package validation to package pipeline (#26417) 2025-11-11 12:24:59 -08:00
Travis PlunkandJustin Chung 08f807874e [release/v7.4] Backport Store publishing improvements (#26401)
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
2025-11-10 12:09:35 -08:00
Travis Plunk cd673a3cdf [release/v7.4] Fix path to metadata.json in channel selection script (#26399) 2025-11-10 12:07:21 -08:00
Travis PlunkandCopilot ac01f2de00 [release/v7.4] Optimize/split windows package signing (#26413)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-10 12:05:43 -08:00
Travis Plunk 7a63d92aa1 [release/v7.4] Improve ADO package build and validation across platforms (#26405) 2025-11-10 11:01:52 -08:00
Travis PlunkandJustin Chung 07d550fc93 [release/v7.4] Separate Store Automation Service Endpoints, Resolve AppID (#26396)
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
2025-11-05 13:44:54 -08:00
Travis PlunkandDongbo Wang a3ac44f691 [release/v7.4] Fix the task name to not use the pre-release task (#26395)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2025-11-05 13:21:40 -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 PlunkandCopilot 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
e18d158dce [release/v7.4] Replace fpm with native macOS packaging tools (pkgbuild/productbuild) (#26344)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-11-04 12:51:19 -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 BotandTravis Plunk e43fc13d3a [release/v7.4] Add reusable get-changed-files action and refactor existing actions (#26361)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-11-02 23:54:48 +00:00
7e113872a2 [release/v7.4] Add log grouping to build.psm1 for collapsible GitHub Actions logs (#26363)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-11-02 23:16:12 +00:00
a9bc941b85 [release/v7.4] Refactor analyze job to reusable workflow and enable on Windows CI (#26342)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-10-31 01:00:58 +00:00
1413b065bb [release/v7.4] Convert Azure DevOps Linux Packaging pipeline to GitHub Actions workflow (#26336)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-10-31 00:39:45 +00:00
fc5d5faafc [release/v7.4] Add markdown link verification for PRs (#26340)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: xtqqczze <45661989+xtqqczze@users.noreply.github.com>
2025-10-31 00:36:54 +00:00
05cb6d03ad [release/v7.4] Integrate Windows packaging into windows-ci workflow using reusable workflow (#26335)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-10-30 17:24:57 -07:00
f4f3a4239b [release/v7.4] Add network isolation policy parameter to vPack pipeline (#26339)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-30 17:08:36 -07:00
PowerShell Team BotandTravis Plunk 495995f967 [release/v7.4] Github Workflow cleanup (#26334)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-10-29 15:18:21 -07:00
fa7640b515 [release/v7.4] Add build to vPack Pipeline (#25980)
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-10-16 21:01:17 +00:00
PowerShell Team BotandTravis Plunk 83d74c9a70 [release/v7.4] Update vPack name (#26222)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-10-16 13:31:06 -07:00