MCPcopy Index your code
hub / github.com/aboutcode-org/vulnerablecode / get_context_data

Method get_context_data

vulnerabilities/views.py:1043–1051  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

1041 return pipeline.pipelineruns.defer("log")
1042
1043 def get_context_data(self, **kwargs):
1044 context = super().get_context_data(**kwargs)
1045 pipeline = get_object_or_404(
1046 PipelineSchedule,
1047 pipeline_id=self.kwargs["pipeline_id"],
1048 )
1049 context["pipeline_name"] = pipeline.pipeline_class.__name__
1050 context["pipeline_description"] = pipeline.description
1051 return context
1052
1053
1054class PipelineRunDetailView(VulnerableCodeDetailView):

Callers

nothing calls this directly

Calls 1

get_context_dataMethod · 0.45

Tested by

no test coverage detected