Add a rake task to seed a project with vulnerabilities
What does this MR do and why?
Describe in detail what your merge request does and why.
Allows the vulnerability seeder to be invoked via rake task for easier local testing.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
gitlab:seed:vulnerabilities
To test - Ensure your GDK is licensed with Ultimate.
- Login
- Go to
http://<your-gdk-host>/gitlab-org/gitlab-test/-/security/vulnerability_report
- Observe that the vulnerability report is empty
- Run
bundle exec rake 'gitlab:seed:vulnerabilities[gitlab-org/gitlab-test]'
- Refresh the vulnerability report
- Observe that it now contains vulnerabilities
ee/db/fixtures/development/20_vulnerabilities.rb
To test Run bundle exec rake setup
- This will reset the database on your GDK
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Brian Williams