From 24398808b4cd2641348709801c19674c6e7caa51 Mon Sep 17 00:00:00 2001 From: Minwoo Jung Date: Wed, 24 Mar 2021 08:50:09 +0900 Subject: [PATCH] version 1.4.0 * Ensured the prevention of npm substitution attacks during `install`. * Added Github actions integration. * Fixed handling of metadata during `report` * Dependency updates. --- changelog.md | 8 ++++++++ lib/report/github-action.js | 6 +++++- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 47c61f0..c985875 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,11 @@ +1.4.0 / 2021-03-24 +================== + +* Ensured the prevention of npm substitution attacks during `install`. +* Added Github actions integration. +* Fixed handling of metadata during `report` +* Dependency updates. + 1.3.4 / 2019-07-30 ================== diff --git a/lib/report/github-action.js b/lib/report/github-action.js index 7036f06..5c2e392 100644 --- a/lib/report/github-action.js +++ b/lib/report/github-action.js @@ -112,6 +112,10 @@ async function updateCheck (octokit, listChecks, annotations, contextData) { // array of annotations const runName = core.getInput('GITHUB_JOB_NAME') + const logUpdateCheck = () => + console.log('Unable to be sure of the check run ID, are you sure you set a name for the Job in the workflow file and passed the same to the action?') + + if (!listChecks || !listChecks.data) return logUpdateCheck() for (const run of listChecks.data.check_runs) { if (run.name === runName) { @@ -127,7 +131,7 @@ async function updateCheck (octokit, listChecks, annotations, contextData) { } }) } else { - console.log('Unable to be sure of the check run ID, are you sure you set a name for the Job in the workflow file and passed the same to the action?') + logUpdateCheck() } } } diff --git a/package-lock.json b/package-lock.json index b643a65..8a73ab4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ncm-cli", - "version": "1.4.1", + "version": "1.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0290b77..ff50dbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ncm-cli", - "version": "1.4.1", + "version": "1.4.0", "license": "Apache-2.0", "description": "Command-line tool for NodeSource Certified Modules 2.0", "author": "NodeSource (https://nodesource.com)",