blob: 9f6e4be371b6885786841b529f89208242df7c5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class DependencyScanningReport
def initialize(project_path:)
report_path = project_path.join('gl-dependency-scanning-report.json')
@content = report_path.exist? ? JSON.parse(report_path.read) : {}
end
def to_h
@content
end
def to_s
JSON.pretty_generate(to_h)
end
end
|