Skip to content

Commit

Permalink
Adds sourceURL column, required for UBI
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
  • Loading branch information
Tyler Smalley committed Sep 29, 2020
1 parent 73faa89 commit 6d0ddc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/licenses_csv_report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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',
}
);

Expand All @@ -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);
Expand Down

0 comments on commit 6d0ddc3

Please sign in to comment.