diff --git a/core/modules/comment/config/schema/comment.schema.yml b/core/modules/comment/config/schema/comment.schema.yml
index 59900c14b729cf8306f9870f49a7b541926976c7..4d482c1ea74b57611e9158f57e08f58fa792df19 100644
--- a/core/modules/comment/config/schema/comment.schema.yml
+++ b/core/modules/comment/config/schema/comment.schema.yml
@@ -36,7 +36,7 @@ action.configuration.comment_unpublish_by_keyword_action:
       type: sequence
       label: 'Keywords'
       sequence:
-        - type: sequence
+        - type: string
           label: 'Keyword'
 
 action.configuration.comment_unpublish_action:
diff --git a/core/modules/node/config/schema/node.schema.yml b/core/modules/node/config/schema/node.schema.yml
index 81e097735ebd9a2758e9297673852cafdb913fe2..587d3e38b276bbc27f7a6175601cd9123cb49319 100644
--- a/core/modules/node/config/schema/node.schema.yml
+++ b/core/modules/node/config/schema/node.schema.yml
@@ -124,7 +124,7 @@ action.configuration.node_unpublish_by_keyword_action:
       type: sequence
       label: 'Keywords'
       sequence:
-        - type: sequence
+        - type: string
           label: 'Keyword'
 
 block.settings.node_syndicate_block: