From 6d0ddc34e65694ec173e3a8d34436fb0335ab76b Mon Sep 17 00:00:00 2001 From: Tyler Smalley Date: Tue, 29 Sep 2020 07:20:02 -0700 Subject: [PATCH] Adds sourceURL column, required for UBI Signed-off-by: Tyler Smalley --- tasks/licenses_csv_report.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/licenses_csv_report.js b/tasks/licenses_csv_report.js index f57d48f54f978..badd037f966fe 100644 --- a/tasks/licenses_csv_report.js +++ b/tasks/licenses_csv_report.js @@ -52,7 +52,7 @@ function formatCsvValues(fields, values) { export default function licensesCSVReport(grunt) { grunt.registerTask('licenses:csv_report', 'Report of 3rd party dependencies', async function () { - const fields = ['name', 'version', 'url', 'license']; + const fields = ['name', 'version', 'url', 'license', 'sourceURL']; const done = this.async(); try { @@ -81,6 +81,7 @@ export default function licensesCSVReport(grunt) { licenses: [ 'Custom;https://www.redhat.com/licenses/EULA_Red_Hat_Universal_Base_Image_English_20190422.pdf', ], + sourceURL: 'https://oss-dependencies.elastic.co/redhat/ubi/ubi-minimal-8-source.tar.gz', } ); @@ -91,6 +92,7 @@ export default function licensesCSVReport(grunt) { version: pkg.version, url: pkg.repository || `https://www.npmjs.com/package/${pkg.name}`, license: pkg.licenses.join(','), + sourceURL: pkg.sourceURL, }; return formatCsvValues(fields, data);