From 9b0b0bfac30eae6649923fcbaae8edf8f0b509a1 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Sun, 25 Aug 2019 19:37:25 +0300 Subject: [PATCH] build: Lint the lockfile for security policies (#1444) * feat: lint lockfiles * fix: update secrets baseline --- .secrets-baseline | 4 ++-- package.json | 4 +++- yarn.lock | Bin 362651 -> 364900 bytes 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.secrets-baseline b/.secrets-baseline index 8d2322851..a92cd4e2a 100644 --- a/.secrets-baseline +++ b/.secrets-baseline @@ -3,7 +3,7 @@ "files": null, "lines": null }, - "generated_at": "2019-08-10T11:40:14Z", + "generated_at": "2019-08-20T08:33:48Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -2973,5 +2973,5 @@ } ] }, - "version": "0.12.4" + "version": "0.12.2" } diff --git a/package.json b/package.json index d07fcf455..51461c043 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "js-yaml": "3.13.1", "jsonwebtoken": "8.5.1", "kleur": "3.0.3", + "lockfile-lint": "2.0.1", "lodash": "4.17.14", "lunr-mutable-indexes": "2.3.2", "marked": "0.7.0", @@ -112,8 +113,9 @@ "test:all": "npm run test && npm run test:functional && npm run test:e2e", "pre:ci": "npm run lint", "coverage:publish": "codecov", - "lint": "npm run type-check && npm run lint:ts", + "lint": "npm run type-check && npm run lint:ts && npm run lint:lockfile", "lint:ts": "eslint . --ext .js,.ts", + "lint:lockfile": "lockfile-lint --path yarn.lock --type yarn --validate-https --allowed-hosts verdaccio npm yarn", "format": "prettier --single-quote --trailing-comma none --write \"{src,test}/**/*.ts\"", "dev:start": "cross-env BABEL_ENV=registry babel-node --extensions \".ts,.tsx\" src/lib/cli", "code:build": "cross-env BABEL_ENV=registry babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps inline", diff --git a/yarn.lock b/yarn.lock index 26ebf16bf078ed0d38891c3c750dbebbfea740e1..cc58b26a24a3dd6ae2568ae74e0496b6f4209a1a 100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