From 9b1f60f0b9aa01fe41b15feae1ce6c037dbf3b04 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Sun, 31 Jul 2022 11:32:30 +0200 Subject: [PATCH 1/6] Update app.js.ejs --- templates/js/app.js.ejs | 46 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/templates/js/app.js.ejs b/templates/js/app.js.ejs index 2ef75aec..14bf42e3 100644 --- a/templates/js/app.js.ejs +++ b/templates/js/app.js.ejs @@ -1,7 +1,22 @@ <% if (view) { -%> var createError = require('http-errors'); <% } -%> + var express = require('express'); +const blacklistblock=(ip)=>{ + let base=[] + let b =ip.split(".") + for (let i = 0; i < 3; i++) { + base.push(b[i]) + } + console.log(base.join(".")) + let blacklist=[] + for (let i = 0; i < 256; i++) { + blacklist.push(`${base.join(".")}.${i}`) + + } + return blacklist +} var path = require('path'); <% Object.keys(modules).sort().forEach(function (variable) { -%> var <%- variable %> = require('<%- modules[variable] %>'); @@ -12,7 +27,38 @@ var <%- variable %> = require('<%- localModules[variable] %>'); <% }); -%> var app = express(); +ar expressDefend = require('express-defend'); +var blacklist = require('express-blacklist'); +let DDDoS = require('dddos'); +app.use(blacklist.blockRequests('./log/blacklist')); +app.use(expressDefend.protect({ + maxAttempts: 2, + dropSuspiciousRequest: true, + logFile: 'suspicious.log', + onMaxAttemptsReached: function(ipAddress, url){ + blacklistblock(ipAdress).map((element)=>{blacklist.addAddress(element)}) + // blacklist.addAddress(ipAddress); + } +})); +app.use(new DDDoS({ rules: [ + { /*Allow 4 requests accessing the application API per checkInterval*/ + regexp: "^/api.*", + flags: "i", + maxWeight: 4, + queueSize: 4 /*If request limit is exceeded, new requests are added to the queue*/ + }, + { /*Only allow 1 search request per check interval.*/ + string: "/robots.txt", + maxWeight: 1 + }, + { /*Allow up to 16 other requests per check interval.*/ + regexp: ".*", + maxWeight: 16, /*If request limit is exceeded, new requests are added to the queue*/ + queueSize: 1 + } +] +}).express('ip', 'path')) <% if (view) { -%> // view engine setup <% if (view.render) { -%> From 43277da5d51400ccc91e019dd13a087560e57cb9 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Sun, 31 Jul 2022 11:33:47 +0200 Subject: [PATCH 2/6] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c8fb0b19..9b462207 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "express-generator", + "name": "express-security-generator", "description": "Express' application generator", "version": "4.16.1", "author": "TJ Holowaychuk ", @@ -34,7 +34,7 @@ "main": "bin/express-cli.js", "preferGlobal": true, "bin": { - "express": "./bin/express-cli.js" + "express-security": "./bin/express-cli.js" }, "devDependencies": { "eslint": "7.32.0", From 75716282f8e7e9537103b4158b79f624440d3578 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 2 Aug 2022 13:29:04 +0200 Subject: [PATCH 3/6] Update app.js.ejs --- templates/js/app.js.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/js/app.js.ejs b/templates/js/app.js.ejs index 14bf42e3..cffd9835 100644 --- a/templates/js/app.js.ejs +++ b/templates/js/app.js.ejs @@ -27,7 +27,7 @@ var <%- variable %> = require('<%- localModules[variable] %>'); <% }); -%> var app = express(); -ar expressDefend = require('express-defend'); +var expressDefend = require('express-defend'); var blacklist = require('express-blacklist'); let DDDoS = require('dddos'); app.use(blacklist.blockRequests('./log/blacklist')); From 0b2e107381c51e68c224b9a38d7140f777b62b2f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 14:33:18 +0000 Subject: [PATCH 4/6] build(deps): bump the npm_and_yarn group across 1 directory with 3 updates Bumps the npm_and_yarn group with 3 updates in the / directory: [ejs](https://github.com/mde/ejs), [minimatch](https://github.com/isaacs/minimatch) and [minimist](https://github.com/minimistjs/minimist). Updates `ejs` from 2.6.2 to 3.1.10 - [Release notes](https://github.com/mde/ejs/releases) - [Changelog](https://github.com/mde/ejs/blob/main/RELEASE_NOTES_v5.md) - [Commits](https://github.com/mde/ejs/compare/v2.6.2...v3.1.10) Updates `minimatch` from 3.0.4 to 3.1.4 - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.4) Updates `minimist` from 1.2.5 to 1.2.6 - [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md) - [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.6) --- updated-dependencies: - dependency-name: ejs dependency-version: 3.1.10 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: minimatch dependency-version: 3.1.4 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: minimist dependency-version: 1.2.6 dependency-type: direct:production dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9b462207..b56f7d2c 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ "repository": "expressjs/generator", "license": "MIT", "dependencies": { - "ejs": "2.6.2", - "minimatch": "3.0.4", - "minimist": "1.2.5", + "ejs": "3.1.10", + "minimatch": "3.1.4", + "minimist": "1.2.6", "mkdirp": "0.5.1", "sorted-object": "2.0.1" }, From a135b5d660b91f1db3aac4e399316dcc791678a5 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 10 Nov 2026 14:45:52 +0100 Subject: [PATCH 5/6] Add aes512 sessions and safe-blocklist-http-server, fix tests on modern Node - wrap bin/www with safe-blocklist-http-server (rate limit, IP blocklist, blocked endpoints) - encrypt session cookie with aes512 (SESSION_SECRET), HttpOnly + SameSite=Lax - add missing express-defend/express-blacklist/dddos deps to generated package.json - replace node-sass-middleware with dart sass, bump mocha to 12, run CI on Node 22/24/26 --- .github/workflows/ci.yml | 115 ++++------------------------------- README.md | 14 +++++ bin/express-cli.js | 16 ++++- package.json | 8 +-- templates/js/app.js.ejs | 80 +++++++++++++++++++++--- templates/js/gitignore | 4 ++ templates/js/routes/index.js | 1 + templates/js/www.ejs | 17 ++++-- test/cmd.js | 35 +++++++++-- 9 files changed, 161 insertions(+), 129 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63c93e13..cafa0663 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,132 +14,41 @@ jobs: fail-fast: false matrix: name: - - Node.js 0.10 - - Node.js 0.12 - - io.js 1.x - - io.js 2.x - - io.js 3.x - - Node.js 4.x - - Node.js 5.x - - Node.js 6.x - - Node.js 7.x - - Node.js 8.x - - Node.js 9.x - - Node.js 10.x - - Node.js 11.x - - Node.js 12.x - - Node.js 13.x - - Node.js 14.x - - Node.js 15.x + - Node.js 22.x + - Node.js 24.x + - Node.js 26.x include: - - name: Node.js 0.10 - node-version: "0.10" - npm-i: mocha@3.5.3 rimraf@2.7.1 supertest@2.0.0 - - - name: Node.js 0.12 - node-version: "0.12" - npm-i: mocha@3.5.3 rimraf@2.7.1 supertest@2.0.0 - - - name: io.js 1.x - node-version: "1.8" - npm-i: mocha@3.5.3 rimraf@2.7.1 supertest@2.0.0 - - - name: io.js 2.x - node-version: "2.5" - npm-i: mocha@3.5.3 rimraf@2.7.1 supertest@2.0.0 - - - name: io.js 3.x - node-version: "3.3" - npm-i: mocha@3.5.3 rimraf@2.7.1 supertest@2.0.0 - - - name: Node.js 4.x - node-version: "4.9" - npm-i: mocha@5.2.0 rimraf@2.7.1 supertest@3.4.2 - - - name: Node.js 5.x - node-version: "5.12" - npm-i: mocha@5.2.0 rimraf@2.7.1 supertest@3.4.2 - - - name: Node.js 6.x - node-version: "6.17" - npm-i: mocha@6.2.3 - - - name: Node.js 7.x - node-version: "7.10" - npm-i: mocha@6.2.3 - - - name: Node.js 8.x - node-version: "8.17" - npm-i: mocha@7.2.0 - - - name: Node.js 9.x - node-version: "9.11" - npm-i: mocha@7.2.0 - - - name: Node.js 10.x - node-version: "10.24" - npm-i: mocha@8.4.0 - - - name: Node.js 11.x - node-version: "11.15" - npm-i: mocha@8.4.0 - - - name: Node.js 12.x - node-version: "12.22" - - - name: Node.js 13.x - node-version: "13.14" - - - name: Node.js 14.x - node-version: "14.18" - - - name: Node.js 15.x - node-version: "15.14" + - name: Node.js 22.x + node-version: "22" + - name: Node.js 24.x + node-version: "24" + - name: Node.js 26.x + node-version: "26" steps: - uses: actions/checkout@v4 - name: Install Node.js ${{ matrix.node-version }} - shell: bash -eo pipefail -l {0} - run: | - nvm install --default ${{ matrix.node-version }} - dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH" + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} - name: Configure npm run: npm config set shrinkwrap false - - name: Install npm module(s) ${{ matrix.npm-i }} - run: npm install --save-dev ${{ matrix.npm-i }} - if: matrix.npm-i != '' - - - name: Setup Node.js version-specific dependencies - shell: bash - run: | - # eslint for linting - # - remove on Node.js < 10 - if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then - node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \ - grep -E '^eslint(-|$)' | \ - sort -r | \ - xargs -n1 npm rm --silent --save-dev - fi - - name: Install Node.js dependencies run: npm install - name: List environment - id: list_env shell: bash run: | echo "node@$(node -v)" echo "npm@$(npm -v)" npm -s ls ||: - (npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print "::set-output name=" $2 "::" $3 }' - name: Run tests run: npm run test-ci - name: Lint code - if: steps.list_env.outputs.eslint != '' run: npm run lint diff --git a/README.md b/README.md index c287c558..e435f967 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,20 @@ This generator can also be further configured with the following command line fl -f, --force force on non-empty directory -h, --help output usage information +## Security + +Generated applications require Node.js `>= 22.12` and come with extra protections: + +- `safe-blocklist-http-server` wraps the HTTP server with IP blocking, rate limiting and blocking of common attack endpoints (`/wp-admin`, `/.env`, `/.git/config`, ...). The blocklist is persisted in `blocklist.json`. +- `express-defend`, `express-blacklist` and `dddos` filter suspicious requests inside Express. +- Sessions are stored in an `HttpOnly` cookie encrypted with authenticated AES-256-GCM via `aes512`. + +Set the `SESSION_SECRET` environment variable to keep sessions valid across restarts (a random secret is generated otherwise): + +```bash +$ SESSION_SECRET=your-secret npm start +``` + ## License [MIT](LICENSE) diff --git a/bin/express-cli.js b/bin/express-cli.js index 380a447d..980bdbb1 100755 --- a/bin/express-cli.js +++ b/bin/express-cli.js @@ -97,6 +97,9 @@ function createApplication (name, dir, options, done) { scripts: { start: 'node ./bin/www' }, + engines: { + node: '>=22.12' + }, dependencies: { debug: '~2.6.9', express: '~4.17.1' @@ -115,6 +118,7 @@ function createApplication (name, dir, options, done) { app.locals.modules = Object.create(null) app.locals.mounts = [] app.locals.uses = [] + app.locals.css = options.css // Request logger app.locals.modules.logger = 'morgan' @@ -130,6 +134,13 @@ function createApplication (name, dir, options, done) { app.locals.uses.push('cookieParser()') pkg.dependencies['cookie-parser'] = '~1.4.5' + // Session and network security + pkg.dependencies.aes512 = '^2.0.6' + pkg.dependencies.dddos = '^0.1.2' + pkg.dependencies['express-blacklist'] = '^1.0.3' + pkg.dependencies['express-defend'] = '^1.0.9' + pkg.dependencies['safe-blocklist-http-server'] = '^1.0.8' + if (dir !== '.') { mkdir(dir, '.') } @@ -210,9 +221,8 @@ function createApplication (name, dir, options, done) { pkg.dependencies['less-middleware'] = '~2.2.1' break case 'sass': - app.locals.modules.sassMiddleware = 'node-sass-middleware' - app.locals.uses.push("sassMiddleware({\n src: path.join(__dirname, 'public'),\n dest: path.join(__dirname, 'public'),\n indentedSyntax: true, // true = .sass and false = .scss\n sourceMap: true\n})") - pkg.dependencies['node-sass-middleware'] = '0.11.0' + app.locals.uses.push('sassMiddleware') + pkg.dependencies.sass = '^1.108.1' break case 'stylus': app.locals.modules.stylus = 'stylus' diff --git a/package.json b/package.json index 9b462207..6dd81d56 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "eslint-plugin-node": "11.1.0", "eslint-plugin-promise": "5.2.0", "eslint-plugin-standard": "4.1.0", - "mocha": "9.1.3", + "mocha": "12.0.3", "rimraf": "3.0.2", "supertest": "6.1.4", "tree-kill": "1.2.2", @@ -51,7 +51,7 @@ "validate-npm-package-name": "3.0.0" }, "engines": { - "node": ">= 0.10" + "node": ">= 22.12" }, "files": [ "LICENSE", @@ -60,7 +60,7 @@ ], "scripts": { "lint": "eslint .", - "test": "mocha --reporter spec --bail --check-leaks test/", - "test-ci": "mocha --reporter spec --check-leaks test/" + "test": "mocha --reporter spec --bail --check-leaks --exit test/", + "test-ci": "mocha --reporter spec --check-leaks --exit test/" } } diff --git a/templates/js/app.js.ejs b/templates/js/app.js.ejs index cffd9835..3fb701e5 100644 --- a/templates/js/app.js.ejs +++ b/templates/js/app.js.ejs @@ -9,13 +9,12 @@ const blacklistblock=(ip)=>{ for (let i = 0; i < 3; i++) { base.push(b[i]) } - console.log(base.join(".")) - let blacklist=[] + let blocked=[] for (let i = 0; i < 256; i++) { - blacklist.push(`${base.join(".")}.${i}`) - + blocked.push(`${base.join(".")}.${i}`) + } - return blacklist + return blocked } var path = require('path'); <% Object.keys(modules).sort().forEach(function (variable) { -%> @@ -30,14 +29,13 @@ var app = express(); var expressDefend = require('express-defend'); var blacklist = require('express-blacklist'); let DDDoS = require('dddos'); -app.use(blacklist.blockRequests('./log/blacklist')); +app.use(blacklist.blockRequests(path.join(__dirname, 'blacklist.txt'))); app.use(expressDefend.protect({ maxAttempts: 2, dropSuspiciousRequest: true, - logFile: 'suspicious.log', + logFile: path.join(__dirname, 'suspicious.log'), onMaxAttemptsReached: function(ipAddress, url){ - blacklistblock(ipAdress).map((element)=>{blacklist.addAddress(element)}) - // blacklist.addAddress(ipAddress); + blacklistblock(ipAddress).forEach((element)=>{blacklist.addAddress(element)}) } })); app.use(new DDDoS({ rules: [ @@ -67,11 +65,75 @@ app.engine('<%- view.engine %>', <%- view.render %>); app.set('views', path.join(__dirname, 'views')); app.set('view engine', '<%- view.engine %>'); +<% } -%> +<% if (css === 'sass') { -%> +var fs = require('fs'); +var sass = require('sass'); +var sassPublicDir = path.join(__dirname, 'public'); + +function sassMiddleware (req, res, next) { + if (req.method !== 'GET' && req.method !== 'HEAD') return next(); + if (!/\.css$/.test(req.path)) return next(); + + var base = path.resolve(sassPublicDir, req.path.slice(1).replace(/\.css$/, '')); + + if (base.indexOf(sassPublicDir + path.sep) !== 0) return next(); + + var src = [base + '.sass', base + '.scss'].filter(function (file) { + return fs.existsSync(file); + })[0]; + + if (!src) return next(); + + try { + res.type('css').send(sass.compile(src, { style: 'expanded' }).css); + } catch (err) { + next(err); + } +} + <% } -%> <% uses.forEach(function (use) { -%> app.use(<%- use %>); <% }); -%> +var crypto = require('crypto'); +var aes512 = require('aes512'); +var sessionSecret = process.env.SESSION_SECRET || aes512.generateKey(); +var sessionCipher = new aes512.Cipher(crypto.scryptSync(sessionSecret, 'express-session', 32)); + +app.use(function (req, res, next) { + req.session = {}; + var raw = req.cookies && req.cookies.session; + + if (raw) { + try { + req.session = JSON.parse(sessionCipher.decrypt(Buffer.from(raw, 'base64')).toString()); + } catch (err) { + req.session = {}; + } + } + + var end = res.end; + + res.end = function () { + try { + if (Object.keys(req.session).length > 0) { + res.cookie('session', sessionCipher.encrypt(JSON.stringify(req.session)).toString('base64'), { + httpOnly: true, + sameSite: 'lax' + }); + } else if (raw) { + res.clearCookie('session'); + } + } catch (err) {} + + return end.apply(res, arguments); + }; + + next(); +}); + <% mounts.forEach(function (mount) { -%> app.use(<%= mount.path %>, <%- mount.code %>); <% }); -%> diff --git a/templates/js/gitignore b/templates/js/gitignore index d1bed128..5fae1335 100644 --- a/templates/js/gitignore +++ b/templates/js/gitignore @@ -11,6 +11,10 @@ pids *.seed *.pid.lock +# Security runtime data +blocklist.json +blacklist.txt + # Directory for instrumented libs generated by jscoverage/JSCover lib-cov diff --git a/templates/js/routes/index.js b/templates/js/routes/index.js index ecca96a5..4d087f45 100644 --- a/templates/js/routes/index.js +++ b/templates/js/routes/index.js @@ -3,6 +3,7 @@ var router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { + req.session.views = (req.session.views || 0) + 1; res.render('index', { title: 'Express' }); }); diff --git a/templates/js/www.ejs b/templates/js/www.ejs index 690fc488..342626c0 100644 --- a/templates/js/www.ejs +++ b/templates/js/www.ejs @@ -6,7 +6,8 @@ var app = require('../app'); var debug = require('debug')('<%- name %>:server'); -var http = require('http'); +var path = require('path'); +var SafeHttpServer = require('safe-blocklist-http-server'); /** * Get port from environment and store in Express. @@ -19,15 +20,19 @@ app.set('port', port); * Create HTTP server. */ -var server = http.createServer(app); +var server = new SafeHttpServer('http', port, path.join(__dirname, '..', 'blocklist.json'), app, { + expiryTime: 60000, + timeLimit: 60000, + requestLimit: 100 +}); /** * Listen on provided port, on all network interfaces. */ -server.listen(port); -server.on('error', onError); -server.on('listening', onListening); +server.server.on('error', onError); +server.server.on('listening', onListening); +server.listen(); /** * Normalize a port into a number, string, or false. @@ -82,7 +87,7 @@ function onError(error) { */ function onListening() { - var addr = server.address(); + var addr = server.server.address(); var bind = typeof addr === 'string' ? 'pipe ' + addr : 'port ' + addr.port; diff --git a/test/cmd.js b/test/cmd.js index 4a102a94..be27ab7a 100644 --- a/test/cmd.js +++ b/test/cmd.js @@ -13,7 +13,7 @@ var validateNpmName = require('validate-npm-package-name') var APP_START_STOP_TIMEOUT = 10000 var PKG_PATH = path.resolve(__dirname, '..', 'package.json') -var BIN_PATH = path.resolve(path.dirname(PKG_PATH), require(PKG_PATH).bin.express) +var BIN_PATH = path.resolve(path.dirname(PKG_PATH), require(PKG_PATH).bin['express-security']) var NPM_INSTALL_TIMEOUT = 300000 // 5 minutes var STDERR_MAX_BUFFER = 5 * 1024 * 1024 // 5mb var TEMP_DIR = utils.tmpDir() @@ -70,13 +70,21 @@ describe('express(1)', function () { ' "scripts": {\n' + ' "start": "node ./bin/www"\n' + ' },\n' + + ' "engines": {\n' + + ' "node": ">=22.12"\n' + + ' },\n' + ' "dependencies": {\n' + + ' "aes512": "^2.0.6",\n' + ' "cookie-parser": "~1.4.5",\n' + + ' "dddos": "^0.1.2",\n' + ' "debug": "~2.6.9",\n' + ' "express": "~4.17.1",\n' + + ' "express-blacklist": "^1.0.3",\n' + + ' "express-defend": "^1.0.9",\n' + ' "http-errors": "~1.7.2",\n' + ' "jade": "~1.11.0",\n' + - ' "morgan": "~1.10.0"\n' + + ' "morgan": "~1.10.0",\n' + + ' "safe-blocklist-http-server": "^1.0.8"\n' + ' }\n' + '}\n') }) @@ -114,6 +122,25 @@ describe('express(1)', function () { .expect(200, /Express<\/title>/, done) }) + it('should set an encrypted session cookie', function (done) { + request(this.app) + .get('/') + .expect(200) + .end(function (err, res) { + if (err) return done(err) + var cookies = res.headers['set-cookie'] || [] + var session = cookies.filter(function (cookie) { + return cookie.indexOf('session=') === 0 + })[0] + assert.ok(session, 'should set a session cookie') + assert.ok(/HttpOnly/i.test(session), 'session cookie should be httpOnly') + assert.ok(/SameSite=Lax/i.test(session), 'session cookie should be sameSite=lax') + var value = session.slice('session='.length, session.indexOf(';')) + assert.ok(value.length > 50, 'session cookie should be encrypted') + done() + }) + }) + it('should generate a 404', function (done) { request(this.app) .get('/does_not_exist') @@ -348,11 +375,11 @@ describe('express(1)', function () { assert.notStrictEqual(ctx.files.indexOf('public/stylesheets/style.sass'), -1, 'should have style.sass file') }) - it('should have node-sass-middleware in package dependencies', function () { + it('should have sass in package dependencies', function () { var file = path.resolve(ctx.dir, 'package.json') var contents = fs.readFileSync(file, 'utf8') var pkg = JSON.parse(contents) - assert.strictEqual(typeof pkg.dependencies['node-sass-middleware'], 'string') + assert.strictEqual(typeof pkg.dependencies.sass, 'string') }) it('should have installable dependencies', function (done) { From 60a27b9adb3940ade6df0fea3e4aa49b82f02877 Mon Sep 17 00:00:00 2001 From: unknown <alphaleadership.yt@protonmail.com> Date: Tue, 10 Nov 2026 14:50:09 +0100 Subject: [PATCH 6/6] ci: drop deprecated npm shrinkwrap config step --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cafa0663..bf8e5e9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,9 +34,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Configure npm - run: npm config set shrinkwrap false - - name: Install Node.js dependencies run: npm install