Commit Graph
10865 Commits
Author SHA1 Message Date
Armaan Mcleod 459fc8d285 Add quote handling in Verb, StrictModeVersion, Scope & PropertyType Argument Completers with single helper method (#24839) 2025-02-01 14:52:52 +05:00
Travis Plunk c505f4ba39 Convert powershell/PowerShell-CI-linux to GitHub Actions (#24913) 2025-01-31 15:57:18 -08:00
Travis Plunk 2066eb62e4 Convert powershell/PowerShell-Windows-CI to GitHub Actions (#24899) 2025-01-31 12:34:31 -08:00
2259f56c07 Fix MSIX stage in release pipeline (#24900)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2025-01-31 10:42:58 -06:00
PowerShell Team Bot 6c216bff4d Update .NET SDK (#24906) 2025-01-30 23:54:18 +00:00
Armaan Mcleod 2a1d17eda6 Update IndexOfAny calls with invalid path/filename to SearchValues<char> for more efficient char searching (#24896) 2025-01-30 17:42:57 +05:00
Jordan Borean 4e7942135f Fix Start-Process -Wait polling (#24711) 2025-01-28 13:52:48 +05:00
Armaan Mcleod bca20334c7 Convert InvalidCommandNameCharacters in AnalysisCache to SearchValues<char> for more efficient char searching (#24880) 2025-01-28 10:33:26 +05:00
Armaan Mcleod c1abc73def Convert s_charactersRequiringQuotes in Completion Completers to SearchValues<char> for more efficient char searching (#24879) 2025-01-28 10:29:29 +05:00
Justin ChungandJustin Chung 85fcb720da Update metadata.json (#24862)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2025-01-24 11:16:28 -08:00
Anam Navied 251bf0da6f PMC parse state correctly from update command's response (#24850)
* Parse Json before accessing state property for PMC

* fix typo
2025-01-23 09:20:42 -08:00
Justin ChungandJustin Chung 1318d6ab25 Add 7.4.7 Changelog (#24844)
* Add 7.4.7 Changelog

* Change summary comment to Update .NET SDK

---------

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2025-01-23 11:15:03 -06:00
+1 262ae51460 Add EV2 support for publishing PowerShell packages to PMC (#24841)
* added checks to see if pwsh will install

* Upload download folder to artifacts

* Build.ArtifactStagingDirectory

* added verbose

* download folder copy-item -recurse

* Filter copy-item to exclude msix and nupkg

* fixed error with piping objects along

* adding pwsh to path, added checks to see if it was installed

* removed error with write Verbose

* Write-Host ##vstsCommandString

* vsts command string

* trying again

* added path in a new way

* checking if the folder contain pwsh.exe

* added \

* checking the next step with out pwsh

* checking the next step with out pwsh

* trying ##

* ##vso[task.prependpath]$env:PATH

* fixed variable $

* fixed path

* fixed string path issue, and env:Path

* trying pwsh: true

* added pwsh true, refactored publish release draft step to original

* fixed CL file location

* refactoring to original format

* made approval jobs a separate stage and template

* copilot auto fixed wrong approvalJob

* removed job dependency because stage dependency exists

* copying packages in separate folders

* changed package path, turned on DBP on nuget

* removed nugetcommand

* Production, turn on dependencies

* Added Deploy Box Product Pathway to Github Release
and Nuget Release Pipelines

* Templatized pwsh install and repo checkout, clean ups

* Fix seed max value for Container Linux CI (#24510)

* Bump .NET to 9.0.100-rc.2.24474.11 (#24509)

* Update PSResourceGet to v1.1.0-RC2 (#24512)

* Update PSResourceGet to v1.1.0-RC2

* Fix windows packaging

* Update windows bom

* Update version string to be lowercase

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>

* Update changelog for v7.4.6 release (#24496)

* Add a way to use only NuGet feed sources (#24528)

* Update build.psm1

* update default feeds

* fix issue with cgmanifest having duplicate existing entries

* update pattern

* Revert "Update package references (#24414)" (#24532)

This reverts commit 01ae632636.

* [master] Update branch for release (#24534)

* Update package references

* Update cgmanifest

* Update IsolatedModule.Tests.ps1

---------

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>

* Bump github/codeql-action from 3.26.10 to 3.27.0 (#24483)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.10 to 3.27.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/e2b3eafc8d227b0241d48be5f425d47c2d750a13...662472033e021d55d94146f66f6058822b0b39fd)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump actions/upload-artifact from 4.4.0 to 4.4.3 (#24410)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/50769540e7f4bd5e21e526ee35c689e35e0d6874...b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump agrc/reminder-action from 1.0.14 to 1.0.15 (#24384)

Bumps [agrc/reminder-action](https://github.com/agrc/reminder-action) from 1.0.14 to 1.0.15.
- [Release notes](https://github.com/agrc/reminder-action/releases)
- [Changelog](https://github.com/agrc/reminder-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/agrc/reminder-action/compare/b5cc06580b6a711baddf6a947131f85a422fa263...45201302ec0071cce809a483111bda4cdc7d10f2)

---
updated-dependencies:
- dependency-name: agrc/reminder-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump actions/checkout from 4.2.1 to 4.2.2 (#24488)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871...11bd71901bbe5b1630ceea73d27597364c9af683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump actions/dependency-review-action from 4.3.4 to 4.4.0 (#24503)

Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.3.4 to 4.4.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](https://github.com/actions/dependency-review-action/compare/5a2ce3f5b92ee19cbb1541a4984c76d921601d7c...4081bf99e2866ebe428fc0477b69eb4fcda7220a)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Support PSObject wrapped values in ArgumentToEncodingTransformationAttribute (#24555)

* Bump .NET 9 and dependencies (#24573)

* added stage uploading cl and tool to artifacts, removed ob_release_env variable on first stage

* removed publish artifact

* removed variables like tsa config template

* updated image windows container image

* using REPOROOT, removed pwsh checkout, -recurse tools

* added turning off tsa config, credscan, and codesignValidation

* removed cl and tool stage

* combined approval stages

* removed unnecessary variable srcPath

* commented out package pipeline changes

* added package gathering in the release template

* added variable template

* fixed dependsonjob

* added depnedency, added filtering file by ext

* removed dependency

* .gz

* added depends on

* added verbose, fixed checkout

* fixed dependencies

* fixed dependencies 2

* fixed dependcies 3

* enabled sbom

* disabled signing setup

* fixed checkout

* single qute problem

* checking env build source

* testing checkout

* using old pipeline

* checkout

* branch name

* refs/heads

* fixed back to original intention

* separating out ev2

* added ob_release to test

* removed release and ob for first stage

* correct and to And

* removed ob_outputdirectory

* removed ob_outputdirectory

* adding ob_outputDirectory

* added Test_

* added ev2 folders

* approval service env to Test

* removed approval service

* changed inputs

* removed invalid inputs

* modified inputs

* moved jsons to correct location

* copied verbatim from eng hub

* removed dependency to blob public

* added copy

* added docker deployment test service connection

* added mscodehubPAT variable group

* signing profile to internal azure service

* capture workspace

* comment out internal tools signing for now

* move EV2Specs folder and fix path reference to it

* test path of Run.ps1 and change files to sign pattern

* refer to PowerShell files with project name in path as  multiple repo's were checked out

* comment out signing for now

* enable TiP signing

* comment out unused tasks for now

* add in prep steps

* use higher python version available

* use repoRoot in path

* add verbose and error logging to pip3 download command

* fix typo in pip3 command

* add other pip3 command

* use full path of pip3 executable

* check exe path

* fix pip3 command syntax and dir location

* try bash step

* Remove bash step

* change artifactFeed name

* set artifactFeedName to project/feed per docs

* Remove the service connection

* add pip verbose command

* use correct feed name

* remove the service connection and add verbose logging

* get version info only

* fix typo in Push-Location

* use pip instead of pip3

* upgrade pip

* add pip download command

* add code to download needed artifacts and create .tar.gz uploaded to ob_outputdirectory

* add verbose logging

* add one more folder

* add -ItemType Directory

* add variable group reference

* remove var group and var for now

* fix path to mapping.json

* add credscan suppression file var

* copy over EV2Specs folder with fixed path

* specify SourceFolder for CopyFiles task

* put packages.tar.gz under ServiceGroupRoot/Parameters

* create Parameters folder once and refer to pmc MI var

* refer to variable group

* update EV2 json files and test pmc tool in run script

* add tsaconfig file var and fix typo

* add buildVer.txt file

* populate version

* have EV2 task be seperated out into its own stage

* update service connection name in EV2 test task

* see which versions are available

* add -Recurse parameter

* specify version as 3

* test expected path

* comment out python package related code for now

* try recommended version

* try checking onebranch container image path for python

* fix logging statement

* add back rest of python related tasks to see if OB installed python will work

* get repolist.json

* debug why file doesn't exist

* fix path

* fix path in Run.ps1

* update container version

* invoke crane tool which should come installed like python

* refer to python exe

* just use pip

* upgrade pip

* use linux pool image when installing pip package

* use python3 on linux

* revert use of python 3

* comment out python code for now

* mitigate file watcher issue

* set linuxEsrpSigning: true

* try moving set up signing task to right before signing

* remove other ob_restore_phase

* keep using windows image, but specify platform for pip download

* add binaries only flag needed by pip

* try latest manylinux platform

* use linux pool image for job

* use manylinux platform from run that only failed at signing

* use linux pool image for job again with ob_restore_phase

* use python3 on linux

* add ob_restore_phase: true to more tasks

* move the file tasks up

* move the file tasks up again

* add ob_restore_phase: true to all tasks

* move template call before checkout step

* add ob_restore_phase based parameter to template that sets tag and container name

* remove ob_restore_phase from initial checkout

* check pipeline workspace

* more verbose statements for debugging

* more verbose statements for debugging

* move Ev2Specs folder out of .pipelines as ob_restore_phase doesn't copy folders beggining with period

* change casing

* move EV2 files back to .pipelines folder

* update location of rg

* remove which command

* see accessible pmc repos

* fix var names

* limit pmc repo list and add Get-PackageInfo() implementation

* remove repo list command that was writing and fix typo

* add New-RepoPackageObject() implementation

* fix verbose statement and add commented out implementation of Publish-PackageFromBlob()

* add extraction of packages from packages.tar.gz

* change release tag version

* add Skip publish CI param

* add Skip publish as template param as well

* fix boolean written to pmcMetadata.json

* correctly convert boolean written to pmcMetadata.json

* test the function

* add final publishing code in

* fix typo

* trim 'v' off release version

* fix the testing version

* clean up code into methods

* remove call to dead method

* add final publishing code in

* add return

* add missing param

* combine code that creates package objects into one method

* remove unused param

* clean up unused vars

* clean up unused code

* use actual tag

* update conflicting files

* remove code changes to uploadToAzure.yml

* use official template

* use correct official template

* remove generic guardian suppression and tip signing enabling

* temporarily use non official template and fix how pipeline env var is called

* fix indentation

* skip calling pmc code for now

* log version

* log version again

* refer to releaseTag output var correctly

* clean up

* use official template

* fix signing errors- set linuxEsrpSigning: true

* linuxEsrpSigning is a featureFlag

* remove reference to repoList.json which is no longer used and use created vars

* clean up code

* clean up code

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Co-authored-by: Justin Chung <t-juchung@microsoft.com>
Co-authored-by: Justin Chung <124807742+jshigetomi@users.noreply.github.com>
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
Co-authored-by: alerickson <25858831+alerickson@users.noreply.github.com>
Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: PowerShell Team Bot <69177312+pwshBot@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jordan Borean <jborean93@gmail.com>
2025-01-22 12:40:54 -08:00
Travis Plunk ca03ce5018 Remove AzDO credscan as it is now in GitHub (#24842) 2025-01-22 12:40:00 -08:00
xtqqczze 2e97dd4d5a Seal internal types in PlatformInvokes (#24826) 2025-01-20 10:27:21 +05:00
Travis Plunk 172d0b4d8a Add *.props and sort path filters for windows CI (#24822) 2025-01-17 16:36:01 -08:00
Aditya Patwardhan be53d17e31 Use work load identity service connection to download makeappx tool from storage account (#24817) 2025-01-17 13:46:26 -08:00
Travis Plunk d466ae2a59 Update path filters for Windows CI (#24809) 2025-01-17 12:19:41 -08:00
Travis PlunkandJustin Chung 7800ce3168 Create changelog for v7.5.0 (#24808)
* Add changelog for 7.5.0

* move 7.5 history to the 7.5 changelog

* Update CHANGELOG/7.5.md

* Update CHANGELOG/7.5.md

* Update changelog for 7.5.0-rc.1 release

* Update CHANGELOG/7.5.md

---------

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2025-01-17 12:09:58 -08:00
PowerShell Team BotandAditya Patwardhan 9935033b0f Update outdated package references (#24758)
* Update package references

* Update cgmanifest

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2025-01-16 20:55:30 +00:00
KyZy7 20bee1a796 Update metadata.json (#24787) 2025-01-16 09:55:19 -08:00
Justin ChungandJustin Chung 16176ef52b Add tool package download in publish nuget stage (#24790)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2025-01-15 14:45:23 -08:00
Justin ChungandJustin Chung cb9e8a9935 Fix Changelog content grab during GitHub Release (#24788)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2025-01-15 14:17:24 -08:00
Justin ChungandJustin Chung b714f63268 Update Changelog for v7.6.0-preview.2 (#24775)
* Merged PR 33470: Updated Changelog

- Updated Third Party Notices (#24666)
- Updated changelog

----
#### AI description  (iteration 1)
#### PR Classification
Documentation update

#### PR Summary
This pull request updates the changelog with the latest changes for version 7.6.0-preview.1.
- Added breaking changes, general cmdlet updates, code cleanup, tools, tests, build and packaging improvements, and documentation updates in `CHANGELOG/preview.md`.
- Notable updates include treating large Enum values as numbers in `ConvertTo-Json`, adding error for `Get-PSSession -ComputerName` on Unix, and updating `PSReadLine` to 2.3.6.

* Updated CL preivew.2

* Fixed CL update

* Added missing PR

---------

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2025-01-14 18:52:54 -06:00
Justin ChungandJustin Chung a69452ebeb Update metadata.json (#24764)
* Updated metadata.json

* Added 7.6 to version checks

---------

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2025-01-14 12:42:18 -06:00
Anam Navied af55292ca7 Update Microsoft.PowerShell.PSResourceGet to 1.1.0 (#24767) 2025-01-13 16:13:45 -08:00
Justin ChungandJustin Chung 311674b9a5 Add a parameter that skips verify packages step (#24763)
* added a parameter that skips verify packages step

* fix parameter string to boolean value

---------

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2025-01-10 12:06:01 -08:00
Dongbo Wang e051748e9d Make the AssemblyVersion not change for servicing releases (#24667) 2025-01-08 11:47:30 -08:00
Justin ChungandJustin Chung 93d85f1865 Fixed release pipeline errors and switched to KS3 (#24751)
* Fixed an error in the release pipeline

* Fixed ReleaseTag and Version variable in validate
packages

* Switched from Netlock to KS3

---------

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2025-01-08 19:35:12 +00:00
Steven Bucher 16e81a60b1 Add the AIShell module to telemetry collection list (#24747) 2025-01-07 10:50:31 -08:00
PowerShell Team Bot e7311eb08c Update outdated package references (#24580) 2025-01-06 14:03:20 -08:00
dependabot[bot] c29e9140bf Bump actions/upload-artifact from 4.4.3 to 4.5.0 (#24689) 2025-01-06 10:40:38 -08:00
Rich Lander d8513fc1ef Update .NET feed with new domain as azureedge is retiring (#24703) 2025-01-06 10:38:56 -08:00
Frode Flaten c0d7fb787f Add helper in EnumSingleTypeConverter to get enum names as array (#17785) 2025-01-03 01:08:23 +05:00
Ryan Yates 61e9f5dcc2 Return correct FileName property for Get-Item when listing alternate data streams (#18019) 2025-01-02 16:45:57 +05:00
MartinGC94 c066cd85aa Add ExcludeModule parameter to Get-Command (#18955) 2024-12-31 00:06:28 +05:00
MartinGC94 57dbde625f Update Named and Statement block type inference to not consider AssignmentStatements and Increment/decrement operators as part of their output (#21137) 2024-12-29 17:29:03 +05:00
Armaan Mcleod 10d1785030 Update DnsNameList for X509Certificate2 to use X509SubjectAlternativeNameExtension.EnumerateDnsNames Method (#24714) 2024-12-29 15:21:50 +05:00
MartinGC94 8cdb728b6b Add completion of modules by their shortname (#20330) 2024-12-28 13:20:26 +05:00
xtqqczze b74e708cb5 Seal ClientRemoteSessionDSHandlerImpl (#21218)
The motivation of this PR is this comment by @PaulHigin https://github.com/PowerShell/PowerShell/pull/11820#discussion_r452405592_.

_Contributes to #15110._
2024-12-28 08:25:21 +05:00
Armaan Mcleod b5fbe9e613 Fix Get-ItemProperty to report non-terminating error for cast exception (#21115) 2024-12-27 09:09:32 +05:00
Armaan Mcleod e127345820 Add -PropertyType argument completer for New-ItemProperty (#21117) 2024-12-25 17:27:44 +05:00
xtqqczze 8017195541 Seal internal type ClientRemoteSessionDSHandlerImpl (#24705)
* Seal internal type `ClientRemoteSessionDSHandlerImpl`

* Fix `CS0628: new protected member declared in sealed type`
2024-12-25 09:08:51 +05:00
xtqqczze b0fbfb74ce Seal classes in RemotingProtocol2 (#21164) 2024-12-24 11:25:08 +05:00
Aditya Patwardhan 617dbda8f4 Skip CIM ETS member test on older Windows platforms (#24681) 2024-12-19 10:10:17 -08:00
dependabot[bot] 0e62b7ae67 Bump super-linter/super-linter from 7.2.0 to 7.2.1 (#24678) 2024-12-16 15:52:25 -08:00
Justin ChungandJustin Chung 8217fe43d9 added justin chung as powershel team memeber on releaseTools.psm1 (#24672)
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2024-12-13 13:20:37 -06:00
Brendan Burns 90b0149805 Fix a bug in how Write-Host handles XmlNode object (#24669) 2024-12-13 10:24:02 -08:00
dependabot[bot] a2ac229f8d Bump github/codeql-action from 3.27.7 to 3.27.9 (#24674) 2024-12-13 10:18:20 -08:00
Ryan Yates d4a789af85 Update cmdlets WG members (#24275) 2024-12-12 14:06:21 -08:00