-
Notifications
You must be signed in to change notification settings - Fork 850
[release/13.2] Enable CFSClean policies and use dotnet-public feed for winget CLI #15541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,9 +57,19 @@ steps: | |
| displayName: 🟣Set version ${{ parameters.version }} | ||
|
|
||
| - pwsh: | | ||
| Write-Host "Installing Microsoft.WinGet.Client from PSGallery..." | ||
| Install-PSResource -Name Microsoft.WinGet.Client -Repository PSGallery -TrustRepository | ||
| $repoName = 'dotnet-public' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be microsoft-public now
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, maybe not, sorry. What is that for?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is feed we are using to get winget cli. |
||
| $repoUri = 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json' | ||
|
|
||
| Write-Host "Ensuring PSResource repository '$repoName' is registered..." | ||
| $existingRepo = Get-PSResourceRepository -Name $repoName -ErrorAction SilentlyContinue | ||
| if ($null -eq $existingRepo) { | ||
| Register-PSResourceRepository -Name $repoName -Uri $repoUri -Trusted | ||
| } else { | ||
| Write-Host "PSResource repository '$repoName' is already registered. Skipping registration." | ||
| } | ||
|
|
||
| Write-Host "Installing Microsoft.WinGet.Client from $repoName feed..." | ||
| Install-PSResource -Name Microsoft.WinGet.Client -Repository $repoName -TrustRepository | ||
| Write-Host "Microsoft.WinGet.Client installed. Listing installed version:" | ||
| Get-Module -ListAvailable Microsoft.WinGet.Client | Select-Object Name, Version | Format-Table | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help me understand why we need CFSClean, CFSClean2? What's the difference? Also, why do we need permisive, and do we need an exclusion list to get the gallery?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a backport of the PR we meged for
main.@mmitche ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC,
Permissive->CFSClean->CFSClean2- they are building upon the previous one to establish the restrictions, and allowances.Permissiveis the base one allowing most outbound connections.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CFSClean and Clean2 are separate policies and we require both of them.