Skip to content

Add option to check fields requiring verified publisher in manifest p… - #1487

Merged
yao-msft merged 3 commits into
microsoft:masterfrom
yao-msft:manifestverifiedpublisher
Sep 25, 2021
Merged

yao-msft merged 3 commits into
microsoft:masterfrom
yao-msft:manifestverifiedpublisher

Conversation

@yao-msft

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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