Commit 5c09e414 authored by Etienne Baqué's avatar Etienne Baqué

Merge branch 'sk/339028-fix-policy-yaml-response' into 'master'

Stringify policy yaml response in scanExecutionPolicies graphql query

See merge request gitlab-org/gitlab!68656
parents 30b70918 a5847351
......@@ -19,7 +19,7 @@ module Resolvers
name: policy[:name],
description: policy[:description],
enabled: policy[:enabled],
yaml: policy.to_yaml,
yaml: YAML.dump(policy.deep_stringify_keys),
updated_at: policy_configuration.policy_last_updated_at
}
end
......
......@@ -57,7 +57,7 @@ RSpec.describe Resolvers::ScanExecutionPolicyResolver do
name: 'Run DAST in every pipeline',
description: 'This policy enforces to run DAST for every pipeline within the project',
enabled: true,
yaml: policy.to_yaml,
yaml: YAML.dump(policy.deep_stringify_keys),
updated_at: policy_last_updated_at
}
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment