doc/development/sec/generate_test_vulnerabilities.md
You can generate test vulnerabilities for the Vulnerability Report to test GitLab vulnerability management features without running a pipeline.
/-/user_settings/personal_access_tokens and generate a personal access token with api permissions.gitlab/qa directory.bundle installGITLAB_QA_ACCESS_TOKEN=<your_personal_access_token> GITLAB_URL="<address:port>" bundle exec rake vulnerabilities:setup\[<your_project_id>,<vulnerability_count>\] --trace
Make sure you do the following:
<your_personal_access_token> with the token you generated in step one.GITLAB_URL. It should point to address and port of your GitLab instance, for example http://localhost:3000 if you are running GDK<your_project_id> with the ID you obtained in step three above.<vulnerability_count> with the number of vulnerabilities you'd like to generate.The script creates the specified number of placeholder vulnerabilities in the project.