fix(ci): ensure secret_detection run in the same conditions ensure-job-added
What does this MR do and why?
Ensure secret_detection run in the same conditions ensure-job-added.
Currently, the job runs correctly in branches but not merge requests where it also triggers double pipelines.
It also add workflows to avoid duplicated pipelines by properly switching from branch pipeline to to MR pipelines.
MR acceptance checklist
Everything should be good.
How to set up and validate locally
- Fork the project
- Create a branch
- Push the branch
- Create a MR