Replies: 1 comment 2 replies
-
Looking at the code you need to set scm-type to get the urls to work correctly. @paulOsinski Could you finetune the docs on this? The field can be set via the API. The autocreate feature is already complex and not easy to understand, especially from the coding side. A similar opinion was voiced by Cody in the MR linked above: Hi dmarushkin thank you for your contribution! Though I like the approach you took, keeping the auto create context relevant to the necessities that the test and findings need is crucial in making this feature maintainable and easy to understand for newcomers. If applicacble, mark the correct answer to help other users find the answer :-) |
Beta Was this translation helpful? Give feedback.
-
As far as I can tell from the current documentation on source code repositories, SCM type for GitLab should not have to be set, as it is the default. However, when clicking on the link of a finding, I get a 404, because the URL is incorrectly constructed. However, if I manually add scm-type/gitlab as a custom field, the link is constructed correctly.
We are using a self-managed instance of GitLab and I saw in this MR that SCM type indeed has to be set. However, settings this manually or having to parse the response is not convenient at all. In addition, the section of the documentation mentioned in the MR no longer exists (this points to the old docs). Nothing is mentioned in the current documentation on source code repositories.
What is the currently recommended approach to handling this? Having the possibility to set a default SCM type or to be able to use a field in the import-scan or reimport-scan methods would probably make sense?
Also, is it possible this is due to a recent change? In my earlier tests, I do not remember having any issues with the URLs...
Beta Was this translation helpful? Give feedback.
All reactions