Security Products vendored templates must not use before and after scripts
We introduced in %11.9 vendored templates for our Security Products.
It's now easier to enable security checks in user projects thanks to these small snippets.
Nevertheless, some of them are using before_script
(and maybe after_script
) in their definition, preventing the users from using those.
It's always possible to copy and paste the previous content, but that's a poor experience for the user.
We should only use script
to leave space for the users. This bug is a blocker for https://gitlab.com/gitlab-org/gitlab-ce/issues/47234
(demo: https://gitlab.com/gitlab-org/security-products/tests/webgoat/-/jobs/178490259)