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

Replace YAML load with YAML safe load with allowed classes list #1258

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

camertron
Copy link
Contributor

See: #863 (I copied and pasted it so I could add a changeset)

In Psych 4+ YAML.load will default to YAML.safe_load. it is worth using it here since it works with a small list of specified classes even though it is a static list that we supply ourselves

@changeset-bot
Copy link

changeset-bot bot commented Aug 1, 2022

🦋 Changeset detected

Latest commit: 1ac06f0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@camertron camertron temporarily deployed to github-pages August 1, 2022 19:29 Inactive
@camertron camertron marked this pull request as ready for review August 1, 2022 20:26
@camertron camertron requested review from a team and hectahertz August 1, 2022 20:26
@camertron camertron merged commit d3880f7 into main Aug 1, 2022
@camertron camertron deleted the yaml_safe_load branch August 1, 2022 20:26
@primer-css primer-css mentioned this pull request Aug 1, 2022
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