NoMethodError: undefined method `configured_to_create_issues_from_vulnerabilities?' for nil:NilClass
https://sentry.gitlab.net/gitlab/gitlabcom/issues/2508070/?referrer=gitlab_plugin
NoMethodError: undefined method `configured_to_create_issues_from_vulnerabilities?' for nil:NilClass
vulnerabilities_helper.rb:40:in `create_jira_issue_url_for'
return unless vulnerability.project.configured_to_create_issues_from_vulnerabilities?
vulnerabilities/finding_entity.rb:13:in `block in <class:FindingEntity>'
create_jira_issue_url_for(occurrence)
grape_entity/entity.rb:494:in `instance_exec'
instance_exec(object, &block)
grape_entity/entity.rb:494:in `exec_with_object'
instance_exec(object, &block)
grape_entity/exposure/block_exposure.rb:10:in `value'
entity.exec_with_object(options, &@block)
...
(159 additional frame(s) were not displayed)
Steps to reproduce
I'm not exactly sure what's wrong with the security reports I manually created but I shouldn't be able to break GitLab.
- Create a repository with these files: https://gitlab.com/thiagocsf-group/demo/security-report-tests/-/tree/test1
- Run a pipeline
- Try to access the security pipeline tab (e.g. https://gitlab.com/thiagocsf-group/demo/security-report-tests/-/pipelines/274668469/security)
Implementation plan
-
backend Use all the report artifacts while trying to find the findings
Edited by Mehmet Emin INAC