-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add additional admin setting to match security related group policies #2772
Conversation
@@ -5,6 +5,7 @@ | |||
#include "winget/Archive.h" | |||
#include "winget/Filesystem.h" |
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.
Nit: Should these also use <>? I can fix when I create the PR for removing zip experimental feature
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.
yes
@@ -27,7 +28,8 @@ namespace AppInstaller::CLI::Workflow | |||
} | |||
else | |||
{ | |||
if (context.Args.Contains(Execution::Args::Type::IgnoreLocalArchiveMalwareScan)) | |||
if (context.Args.Contains(Execution::Args::Type::IgnoreLocalArchiveMalwareScan) && | |||
Settings::IsAdminSettingEnabled(Settings::AdminSetting::LocalArchiveMalwareScanOverride)) |
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.
Settings::IsAdminSettingEnabled(Settings::AdminSetting::LocalArchiveMalwareScanOverride)) [](http://example.com/codeflow?start=11&length=98)
Should there be a separate elseif block for when someone includes --ignore-local-archive-malware-scan but does not have the admin setting for LocalArchiveMalwareScanOverride enabled? If so, should there be a different error message specific to admin settings?
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 message is handled in command invocation.
Added corresponding admin settings for InstallerHashOverride and LocalArchivemalwareScanOverride
Also added tests.
Microsoft Reviewers: Open in CodeFlow