From bf5dd7ea10dcbb263fa252ae4a26919738668b40 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Mon, 1 Jul 2024 19:32:03 +0200 Subject: [PATCH] Fix the repository URL in the `package.json` file for `pdfjs-dist` For provenance, enabled in PR #18352, to work the repository URL in `package.json` is required to match the repository URL of the GitHub Actions invocation. This should fix the following error we encountered publishing a new release today: ``` npm error 422 Unprocessable Entity - PUT https://registry.npmjs.org/pdfjs-dist - Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "git+https://github.com/mozilla/pdfjs-dist.git", expected to match "https://github.com/mozilla/pdf.js" from provenance ``` --- gulpfile.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.mjs b/gulpfile.mjs index 49dce5da39a68..78dfa005e7a98 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -2226,7 +2226,7 @@ function packageJson() { }, repository: { type: "git", - url: `git+${DIST_REPO_URL}.git`, + url: `git+https://github.com/mozilla/pdf.js.git`, }, engines: { node: ">=18",