Skip to content

Conversation

@Kami
Copy link
Member

@Kami Kami commented Jul 3, 2018

Same change as in StackStorm/st2#4223.

There is no need to use yaml.load when loading workflow definition files since we only support simple types there (integers, strings, lists, etc.).

yaml.safe_load is preferred in such scenarios and yaml.load could present security issues since it also supports loading arbitrary Python objects.

@codecov-io
Copy link

codecov-io commented Jul 3, 2018

Codecov Report

Merging #75 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #75   +/-   ##
=======================================
  Coverage   94.33%   94.33%           
=======================================
  Files          35       35           
  Lines        1908     1908           
  Branches      380      380           
=======================================
  Hits         1800     1800           
  Misses         65       65           
  Partials       43       43
Impacted Files Coverage Δ
orchestra/utils/specs.py 92.3% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d19799...ac8f349. Read the comment docs.

Copy link
Collaborator

@m4dcoder m4dcoder left a comment

Choose a reason for hiding this comment

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

LGTM

@Kami Kami merged commit 9f967b2 into master Jul 17, 2018
@Kami Kami deleted the use_yaml_safe_load branch July 17, 2018 15:33
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.

4 participants