Add ability to checkout commit refs of gemnasium-db
What does this MR do?
This MR gives gemnasium
the ability to checkout gemnasium-db
when setting GEMNASIUM_DB_REF_NAME
to commit refs and tags (not just branches).
Test jobs:
- Broken DS job when using tag: https://gitlab.com/gitlab-org/security-products/tests/go-modules/-/jobs/489193408
- Working DS job when using tag (using this MR's analyzer img): https://gitlab.com/gitlab-org/security-products/tests/go-modules/-/jobs/489196341
- Broken DS job when using commit ref: https://gitlab.com/gitlab-org/security-products/tests/go-modules/-/jobs/489198666
- Working DS job when using commit ref (using this MR's analyzer img): https://gitlab.com/gitlab-org/security-products/tests/go-modules/-/jobs/489197838
What are the relevant issue numbers?
gitlab-org/gitlab#196868 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by 🤖 GitLab Bot 🤖