To implement the symfony security checker as part of your bitbucket pipeline, include the following lines of code in one of the steps.
The first line downloads the Symfony CLI tool, and adds it to the path (so it can be run). The 2nd line actually runs the security-check.
- curl -sS https://get.symfony.com/cli/installer | bash && export PATH="$HOME/.symfony/bin:$PATH"
- symfony check:security
Ref; https://symfony.com/doc/current/setup.html#checking-security-vulnerabilities