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

policy-tester: use UnmarshalStrict #453

Merged
merged 1 commit into from Dec 19, 2022
Merged

Conversation

hectorj2f
Copy link
Collaborator

@hectorj2f hectorj2f commented Dec 19, 2022

Signed-off-by: Hector Fernandez hector@chainguard.dev

closes: #453

Summary

Use UnmarshalStrict to avoid any fields that are found in the data that do not have corresponding struct members, or mapping keys that are duplicates, will result in an error.

Release Note

policy-tester: use UnmarshalStrict.

Documentation

Signed-off-by: Hector Fernandez <hector@chainguard.dev>
@codecov-commenter
Copy link

Codecov Report

Merging #453 (ffb80e2) into main (ceeba71) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #453   +/-   ##
=======================================
  Coverage   53.88%   53.88%           
=======================================
  Files          38       38           
  Lines        3799     3799           
=======================================
  Hits         2047     2047           
  Misses       1607     1607           
  Partials      145      145           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@cpanato cpanato merged commit b82a342 into sigstore:main Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants