$ date
--- stdout ---
Thu Feb 6 13:23:54 UTC 2025
--- end ---
$ git clone file:///srv/git/mediawiki-extensions-WebAuthn.git repo --depth=1 -b REL1_42
--- stderr ---
Cloning into 'repo'...
--- stdout ---
--- end ---
$ git config user.name libraryupgrader
--- stdout ---
--- end ---
$ git config user.email tools.libraryupgrader@tools.wmflabs.org
--- stdout ---
--- end ---
$ git submodule update --init
--- stdout ---
--- end ---
$ grr init
--- stdout ---
Installed commit-msg hook.
--- end ---
$ git show-ref refs/heads/REL1_42
--- stdout ---
05ea49611b4a18bd3b8ad46c4a9162b77c749c36 refs/heads/REL1_42
--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
"auditReportVersion": 2,
"vulnerabilities": {
"nanoid": {
"name": "nanoid",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1101163,
"name": "nanoid",
"dependency": "nanoid",
"title": "Predictable results in nanoid generation when given non-integer values",
"url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55",
"severity": "moderate",
"cwe": [
"CWE-835"
],
"cvss": {
"score": 4.3,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
},
"range": "<3.3.8"
}
],
"effects": [],
"range": "<3.3.8",
"nodes": [
"node_modules/nanoid"
],
"fixAvailable": true
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 0,
"moderate": 1,
"high": 0,
"critical": 0,
"total": 1
},
"dependencies": {
"prod": 1,
"dev": 443,
"optional": 0,
"peer": 7,
"peerOptional": 0,
"total": 443
}
}
}
--- end ---
$ /usr/bin/composer install
--- stderr ---
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 56 installs, 0 updates, 0 removals
- Locking beberlei/assert (v3.3.3)
- Locking brick/math (0.9.3)
- Locking composer/pcre (3.3.2)
- Locking composer/semver (3.4.0)
- Locking composer/spdx-licenses (1.5.8)
- Locking composer/xdebug-handler (3.0.5)
- Locking dealerdirect/phpcodesniffer-composer-installer (v1.0.0)
- Locking doctrine/deprecations (1.1.4)
- Locking felixfbecker/advanced-json-rpc (v3.2.1)
- Locking fgrosse/phpasn1 (v2.5.0)
- Locking league/uri (6.8.0)
- Locking league/uri-interfaces (2.3.0)
- Locking mediawiki/mediawiki-codesniffer (v43.0.0)
- Locking mediawiki/mediawiki-phan-config (0.14.0)
- Locking mediawiki/minus-x (1.1.1)
- Locking mediawiki/phan-taint-check-plugin (6.0.0)
- Locking microsoft/tolerant-php-parser (v0.1.2)
- Locking netresearch/jsonmapper (v4.5.0)
- Locking phan/phan (5.4.3)
- Locking php-parallel-lint/php-console-color (v1.0.1)
- Locking php-parallel-lint/php-console-highlighter (v1.0.0)
- Locking php-parallel-lint/php-parallel-lint (v1.3.2)
- Locking phpcsstandards/phpcsextra (1.1.2)
- Locking phpcsstandards/phpcsutils (1.0.9)
- Locking phpdocumentor/reflection-common (2.2.0)
- Locking phpdocumentor/reflection-docblock (5.6.1)
- Locking phpdocumentor/type-resolver (1.10.0)
- Locking phpstan/phpdoc-parser (2.0.0)
- Locking psr/container (2.0.2)
- Locking psr/http-client (1.0.3)
- Locking psr/http-factory (1.1.0)
- Locking psr/http-message (1.1)
- Locking psr/log (1.1.4)
- Locking ramsey/collection (2.0.0)
- Locking ramsey/uuid (4.7.6)
- Locking sabre/event (5.1.7)
- Locking spomky-labs/base64url (v2.0.4)
- Locking spomky-labs/cbor-php (v2.1.0)
- Locking squizlabs/php_codesniffer (3.8.1)
- Locking symfony/console (v5.4.47)
- Locking symfony/deprecation-contracts (v3.5.1)
- Locking symfony/polyfill-ctype (v1.31.0)
- Locking symfony/polyfill-intl-grapheme (v1.31.0)
- Locking symfony/polyfill-intl-normalizer (v1.31.0)
- Locking symfony/polyfill-mbstring (v1.31.0)
- Locking symfony/polyfill-php73 (v1.31.0)
- Locking symfony/polyfill-php80 (v1.31.0)
- Locking symfony/process (v5.4.47)
- Locking symfony/service-contracts (v3.5.1)
- Locking symfony/string (v6.4.15)
- Locking thecodingmachine/safe (v1.3.3)
- Locking tysonandre/var_representation_polyfill (0.1.3)
- Locking web-auth/cose-lib (v3.3.12)
- Locking web-auth/metadata-service (v3.3.12)
- Locking web-auth/webauthn-lib (v3.3.12)
- Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 56 installs, 0 updates, 0 removals
0 [>---------------------------] 0 [->--------------------------]
- Installing squizlabs/php_codesniffer (3.8.1): Extracting archive
- Installing dealerdirect/phpcodesniffer-composer-installer (v1.0.0): Extracting archive
- Installing brick/math (0.9.3): Extracting archive
- Installing composer/pcre (3.3.2): Extracting archive
- Installing psr/http-message (1.1): Extracting archive
- Installing league/uri-interfaces (2.3.0): Extracting archive
- Installing league/uri (6.8.0): Extracting archive
- Installing symfony/polyfill-php80 (v1.31.0): Extracting archive
- Installing phpcsstandards/phpcsutils (1.0.9): Extracting archive
- Installing phpcsstandards/phpcsextra (1.1.2): Extracting archive
- Installing symfony/polyfill-mbstring (v1.31.0): Extracting archive
- Installing composer/spdx-licenses (1.5.8): Extracting archive
- Installing composer/semver (3.4.0): Extracting archive
- Installing mediawiki/mediawiki-codesniffer (v43.0.0): Extracting archive
- Installing tysonandre/var_representation_polyfill (0.1.3): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.31.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.31.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.31.0): Extracting archive
- Installing symfony/string (v6.4.15): Extracting archive
- Installing symfony/deprecation-contracts (v3.5.1): Extracting archive
- Installing psr/container (2.0.2): Extracting archive
- Installing symfony/service-contracts (v3.5.1): Extracting archive
- Installing symfony/polyfill-php73 (v1.31.0): Extracting archive
- Installing symfony/console (v5.4.47): Extracting archive
- Installing sabre/event (5.1.7): Extracting archive
- Installing netresearch/jsonmapper (v4.5.0): Extracting archive
- Installing microsoft/tolerant-php-parser (v0.1.2): Extracting archive
- Installing webmozart/assert (1.11.0): Extracting archive
- Installing phpstan/phpdoc-parser (2.0.0): Extracting archive
- Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
- Installing doctrine/deprecations (1.1.4): Extracting archive
- Installing phpdocumentor/type-resolver (1.10.0): Extracting archive
- Installing phpdocumentor/reflection-docblock (5.6.1): Extracting archive
- Installing felixfbecker/advanced-json-rpc (v3.2.1): Extracting archive
- Installing psr/log (1.1.4): Extracting archive
- Installing composer/xdebug-handler (3.0.5): Extracting archive
- Installing phan/phan (5.4.3): Extracting archive
- Installing mediawiki/phan-taint-check-plugin (6.0.0): Extracting archive
- Installing mediawiki/mediawiki-phan-config (0.14.0): Extracting archive
- Installing mediawiki/minus-x (1.1.1): Extracting archive
- Installing php-parallel-lint/php-console-color (v1.0.1): Extracting archive
- Installing php-parallel-lint/php-console-highlighter (v1.0.0): Extracting archive
- Installing php-parallel-lint/php-parallel-lint (v1.3.2): Extracting archive
- Installing ramsey/collection (2.0.0): Extracting archive
- Installing psr/http-factory (1.1.0): Extracting archive
- Installing psr/http-client (1.0.3): Extracting archive
- Installing beberlei/assert (v3.3.3): Extracting archive
- Installing web-auth/metadata-service (v3.3.12): Extracting archive
- Installing fgrosse/phpasn1 (v2.5.0): Extracting archive
- Installing web-auth/cose-lib (v3.3.12): Extracting archive
- Installing thecodingmachine/safe (v1.3.3): Extracting archive
- Installing symfony/process (v5.4.47): Extracting archive
- Installing spomky-labs/cbor-php (v2.1.0): Extracting archive
- Installing spomky-labs/base64url (v2.0.4): Extracting archive
- Installing ramsey/uuid (4.7.6): Extracting archive
- Installing web-auth/webauthn-lib (v3.3.12): Extracting archive
0/54 [>---------------------------] 0%
20/54 [==========>-----------------] 37%
30/54 [===============>------------] 55%
44/54 [======================>-----] 81%
54/54 [============================] 100%
17 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package fgrosse/phpasn1 is abandoned, you should avoid using it. No replacement was suggested.
Package web-auth/metadata-service is abandoned, you should avoid using it. Use web-auth/webauthn-lib instead.
Generating autoload files
27 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
--- stdout ---
PHP CodeSniffer Config installed_paths set to ../../mediawiki/mediawiki-codesniffer,../../phpcsstandards/phpcsextra,../../phpcsstandards/phpcsutils
--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
"auditReportVersion": 2,
"vulnerabilities": {
"nanoid": {
"name": "nanoid",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1101163,
"name": "nanoid",
"dependency": "nanoid",
"title": "Predictable results in nanoid generation when given non-integer values",
"url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55",
"severity": "moderate",
"cwe": [
"CWE-835"
],
"cvss": {
"score": 4.3,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
},
"range": "<3.3.8"
}
],
"effects": [],
"range": "<3.3.8",
"nodes": [
"node_modules/nanoid"
],
"fixAvailable": true
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 0,
"moderate": 1,
"high": 0,
"critical": 0,
"total": 1
},
"dependencies": {
"prod": 1,
"dev": 443,
"optional": 0,
"peer": 7,
"peerOptional": 0,
"total": 443
}
}
}
--- end ---
Attempting to npm audit fix
$ /usr/bin/npm audit fix --dry-run --only=dev --json
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
--- stdout ---
{
"added": 443,
"removed": 0,
"changed": 0,
"audited": 444,
"funding": 93,
"audit": {
"auditReportVersion": 2,
"vulnerabilities": {
"nanoid": {
"name": "nanoid",
"severity": "moderate",
"isDirect": false,
"via": [
{
"source": 1101163,
"name": "nanoid",
"dependency": "nanoid",
"title": "Predictable results in nanoid generation when given non-integer values",
"url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55",
"severity": "moderate",
"cwe": [
"CWE-835"
],
"cvss": {
"score": 4.3,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
},
"range": "<3.3.8"
}
],
"effects": [],
"range": "<3.3.8",
"nodes": [
""
],
"fixAvailable": true
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 0,
"moderate": 1,
"high": 0,
"critical": 0,
"total": 1
},
"dependencies": {
"prod": 1,
"dev": 443,
"optional": 0,
"peer": 7,
"peerOptional": 0,
"total": 443
}
}
}
}
--- end ---
{"added": 443, "removed": 0, "changed": 0, "audited": 444, "funding": 93, "audit": {"auditReportVersion": 2, "vulnerabilities": {"nanoid": {"name": "nanoid", "severity": "moderate", "isDirect": false, "via": [{"source": 1101163, "name": "nanoid", "dependency": "nanoid", "title": "Predictable results in nanoid generation when given non-integer values", "url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55", "severity": "moderate", "cwe": ["CWE-835"], "cvss": {"score": 4.3, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"}, "range": "<3.3.8"}], "effects": [], "range": "<3.3.8", "nodes": [""], "fixAvailable": true}}, "metadata": {"vulnerabilities": {"info": 0, "low": 0, "moderate": 1, "high": 0, "critical": 0, "total": 1}, "dependencies": {"prod": 1, "dev": 443, "optional": 0, "peer": 7, "peerOptional": 0, "total": 443}}}}
$ /usr/bin/npm audit fix --only=dev
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
npm WARN deprecated stylelint-stylistic@0.4.3: This package has been deprecated in favor of @stylistic/stylelint-plugin
--- stdout ---
added 443 packages, and audited 444 packages in 5s
93 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
--- end ---
Verifying that tests still pass
$ /usr/bin/npm ci
--- stderr ---
npm WARN deprecated stylelint-stylistic@0.4.3: This package has been deprecated in favor of @stylistic/stylelint-plugin
--- stdout ---
added 443 packages, and audited 444 packages in 6s
93 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
--- end ---
$ /usr/bin/npm test
--- stdout ---
> test
> grunt test
Running "eslint:all" (eslint) task
/src/repo/Gruntfile.js
3:2 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
/src/repo/resources/disable.js
3:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
7:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
/src/repo/resources/login.js
3:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
5:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
/src/repo/resources/register.js
3:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
6:4 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
/src/repo/resources/ui/CredentialForm.js
31:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
34:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
37:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
57:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
/src/repo/resources/ui/LoginForm.js
19:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
/src/repo/resources/ui/ManageForm.js
23:5 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
24:5 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
35:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
/src/repo/resources/util/Authenticator.js
11:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
51:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
52:25 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
61:9 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
70:10 warning navigator.credentials() is not supported in Safari 11, iOS Safari 11.0-11.2 compat/compat
77:41 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
80:10 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
83:10 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
86:10 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
89:36 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
97:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
98:9 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
/src/repo/resources/util/Registrator.js
12:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
53:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
54:25 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
60:23 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
70:10 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
81:10 warning navigator.credentials() is not supported in Safari 11, iOS Safari 11.0-11.2 compat/compat
89:41 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
92:10 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
95:10 warning ES2015 'Uint8Array' is forbidden es-x/no-typed-arrays
104:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
105:9 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
/src/repo/resources/util/util.js
11:3 warning ES2015 block-scoped variables are forbidden es-x/no-block-scoped-variables
✖ 39 problems (0 errors, 39 warnings)
Running "banana:WebAuthn" (banana) task
>> 2 message directories checked.
Running "stylelint:all" (stylelint) task
>> Linted 2 files without errors
Done.
--- end ---
{"1101163": {"source": 1101163, "name": "nanoid", "dependency": "nanoid", "title": "Predictable results in nanoid generation when given non-integer values", "url": "https://github.com/advisories/GHSA-mwcw-c2x4-8c55", "severity": "moderate", "cwe": ["CWE-835"], "cvss": {"score": 4.3, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"}, "range": "<3.3.8"}}
Upgrading n:nanoid from 3.3.7 -> 3.3.8
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json
--- end ---
build: Updating nanoid to 3.3.8
* https://github.com/advisories/GHSA-mwcw-c2x4-8c55
Additional changes:
* Enable stylelint caching.
$ git add .
--- stdout ---
--- end ---
$ git commit -F /tmp/tmptz36lshq
--- stdout ---
[REL1_42 6b19b7a] build: Updating nanoid to 3.3.8
3 files changed, 10 insertions(+), 6 deletions(-)
--- end ---
$ git format-patch HEAD~1 --stdout
--- stdout ---
From 6b19b7a603086d871788812eb510e3178c6ee349 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Thu, 6 Feb 2025 13:24:23 +0000
Subject: [PATCH] build: Updating nanoid to 3.3.8
* https://github.com/advisories/GHSA-mwcw-c2x4-8c55
Additional changes:
* Enable stylelint caching.
Change-Id: I424a7ee861d0238c7529cee57bbdf30c291d4431
---
.gitignore | 1 +
Gruntfile.js | 3 +++
package-lock.json | 12 ++++++------
3 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/.gitignore b/.gitignore
index f0174f9..de07eb5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ composer.lock
node_modules/
vendor/
.eslintcache
+/.stylelintcache
diff --git a/Gruntfile.js b/Gruntfile.js
index 0891e69..d0fbdf1 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -14,6 +14,9 @@ module.exports = function ( grunt ) {
all: '.'
},
stylelint: {
+ options: {
+ cache: true
+ },
all: [
'**/*.{css,less}',
'!node_modules/**',
diff --git a/package-lock.json b/package-lock.json
index c868dfc..f646e66 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3409,9 +3409,9 @@
}
},
"node_modules/nanoid": {
- "version": "3.3.7",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
- "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
+ "version": "3.3.8",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
+ "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
"dev": true,
"funding": [
{
@@ -7814,9 +7814,9 @@
}
},
"nanoid": {
- "version": "3.3.7",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
- "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
+ "version": "3.3.8",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
+ "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
"dev": true
},
"natural-compare": {
--
2.39.2
--- end ---