Skip to content
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 option to check fields requiring verified publisher in manifest p… #1487

Merged
merged 3 commits into from
Sep 25, 2021

Conversation

yao-msft
Copy link
Contributor

@yao-msft yao-msft commented Sep 20, 2021

Change

Extend manifest validation option to support validating fields requiring verified publishers.

Validation

Added tests.

Microsoft Reviewers: Open in CodeFlow

@yao-msft yao-msft requested a review from a team as a code owner September 20, 2021 18:34
Manifest& manifest,
const ManifestVer& manifestVersion,
bool fullValidation,
bool errorOnVerifiedPublisherFields)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the long term it probably makes more sense to pass the ManifestValidateOption around rather than individual bools. That would also mean moving it into the Manifest namespace rather than being in YAML (which makes sense really).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I wrote that I thought that it was a struct; I still stand by it being easier to update though. You only need to add a new helper function (if that even) to call WI_IsFlagSet and you have a new control.

@yao-msft yao-msft merged commit 984b7c1 into microsoft:master Sep 25, 2021
@yao-msft yao-msft deleted the manifestverifiedpublisher branch September 25, 2021 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants