Skip to content

Commit cbf689f

Browse files
authored
Mitigate unsafe yaml loading (#76)
1 parent 732bc16 commit cbf689f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/plugin/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
from requests import Response
2929

3030
try:
31-
from yaml import CLoader as Loader
31+
from yaml import CSafeLoader as Loader
3232
except ImportError:
33-
from yaml import Loader
33+
from yaml import SafeLoader as Loader
3434

3535

3636
class TestPluginBase(ABC):

0 commit comments

Comments
 (0)