Skip to content

Commit 1245345

Browse files
committed
fix error data.info.file
1 parent bda2341 commit 1245345

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

dist/index.js

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,7 @@ export async function run(): Promise<void> {
414414
try {
415415
const rl_json_file = core.getInput('rl_json_path')
416416
core.debug(`${rl_json_file}`)
417-
418-
const data = JSON.parse(fs.readFileSync(rl_json_file, 'utf-8'))
419-
core.debug(`loaded json file ${rl_json_file}`)
420-
421-
const name: string = data.info.file.identity.name
422-
const purl: string = data.info.file.identity.purl
423-
core.debug(`name: ${name}, purl: ${purl}`)
424-
425-
const rjrp = new RlJsonReportProcessor('report.rl.json')
417+
const rjrp = new RlJsonReportProcessor(rl_json_file)
426418
rjrp.simplifyRlJson()
427419
rjrp.output() // prints to console.log()
428420
} catch (error) {

0 commit comments

Comments
 (0)