Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Try adding ignoreScripts to fix pnpmfileChecksum update issue (#4592)
sarayourfriend3954097a7e23
diff --git a/.github/global-renovate.json5 b/.github/global-renovate.json5new file mode 100644index 000000000..35fefc9c7--- /dev/null+++ b/.github/global-renovate.json5@@ -0,0 +1,46 @@+{+ // Global Renovate configuration, used to configure self-hosted Renovate itself+ // See .github/renovate.json5 for repository-specific configuration+ // See https://docs.renovatebot.com/config-overview/#types-of-config for further reading+ branchPrefix: "gha-renovate",+ username: "openverse-bot",+ gitAuthor: "Openverse Bot <[email protected]>",+ onboarding: false,+ platform: "github",+ repositories: ["WordPress/openverse", "WordPress/openverse-infrastructure"],+ extends: [+ "config:recommended",+ ":preserveSemverRanges",+ ":automergeMinor",+ ":automergePr",+ "schedule:monthly",+ "group:monorepos",+ ],+ vulnerabilityAlerts: {+ schedule: ["at any time"],+ },+ prCommitsPerRunLimit: 3,+ labels: [+ "dependencies",+ "π» aspect: code",+ "π§° goal: internal improvement",+ "π© priority: low",+ ],+ forkProcessing: "disabled",+ allowScripts: true,+ "pre-commit": { enabled: true },+ packageRules: [+ {+ matchDatasources: ["pypi"],+ addLabels: ["π tech: python"],+ },+ {+ matchDatasources: ["npm"],+ addLabels: ["π¨ tech: javascript"],+ },+ {+ matchDatasources: ["docker"],+ addLabels: ["π³ tech: docker"],+ },+ ],+}diff --git a/.github/renovate.json b/.github/renovate.jsondeleted file mode 100644index 4f30d2ac3..000000000--- a/.github/renovate.json+++ /dev/null@@ -1,96 +0,0 @@-{- "branchPrefix": "gha-renovate",- "username": "openverse-bot",- "gitAuthor": "Openverse Bot <[email protected]>",- "onboarding": false,- "platform": "github",- "repositories": ["WordPress/openverse"],- "extends": [- "config:recommended",- ":preserveSemverRanges",- ":automergeMinor",- ":automergePr",- "schedule:monthly",- "group:monorepos"- ],- "vulnerabilityAlerts": {- "schedule": ["at any time"]- },- "prCommitsPerRunLimit": 3,- "labels": [- "dependencies",- "π» aspect: code",- "π§° goal: internal improvement",- "π© priority: low"- ],- "packageRules": [- {- "matchDatasources": ["docker"],- "addLabels": ["π³ tech: docker"]- },- {- "groupName": "workflows",- "matchFileNames": [- ".github/{actions,workflows}/**",- "automations/**",- ".pre-commit-config.yaml"- ],- "matchManagers": ["pre-commit", "github-actions"],- "addLabels": ["π§± stack: mgmt"]- },- {- "matchDatasources": ["pypi"],- "addLabels": ["π tech: python"]- },- {- "matchDatasources": ["npm"],- "addLabels": ["π¨ tech: javascript"]- },- {- "matchFileNames": ["{frontend,packages/js}/**"],- "addLabels": ["π§± stack: frontend"]- },- {- "matchFileNames": ["{api,packages/python}/**"],- "addLabels": ["π§± stack: api"]- },- {- "matchFileNames": ["ingestion_server/**"],- "addLabels": ["π§± stack: ingestion server"]- },- {- "matchFileNames": ["catalog/**"],- "addLabels": ["π§± stack: catalog"]- },- {- "matchFileNames": ["documentation/**"],- "addLabels": ["π§± stack: documentation"]- },- {- "groupName": "python dev dependencies",- "matchDepTypes": ["dev-packages"],- "matchFileNames": [- "api/**",- "catalog/**",- "ingestion_server/**",- "documentation/**",- "packages/python/openverse-attribution/**"- ]- },- {- "groupName": "@openverse/eslint-plugin",- "matchFileNames": ["packages/js/eslint-plugin/**"]- },- {- "groupName": "tailwind",- "matchPackagePatterns": ["tailwindcss"]- },- {- "groupName": "@testing-library",- "matchPackagePrefixes": ["@testing-library"]- }- ],- "forkProcessing": "disabled",- "allowScripts": true,- "pre-commit": { "enabled": true }-}diff --git a/.github/renovate.json5 b/.github/renovate.json5new file mode 100644index 000000000..a1a46451b--- /dev/null+++ b/.github/renovate.json5@@ -0,0 +1,66 @@+{+ // WordPress/openverse specific configuration goes in this file+ // See .github/global-renovate.json5 for configuration of the Renovate application itself++ // pnpmfile.cjs required for lock file updates (including checksum), and so must not be ignored+ ignoreScripts: false,+ packageRules: [+ {+ groupName: "workflows",+ matchFileNames: [+ ".github/{actions,workflows}/**",+ "automations/**",+ ".pre-commit-config.yaml",+ ],+ matchManagers: ["pre-commit", "github-actions"],+ addLabels: ["π§± stack: mgmt"],+ },+ {+ matchFileNames: ["{frontend,packages/js}/**"],+ addLabels: ["π§± stack: frontend"],+ },+ {+ matchFileNames: ["{api,packages/python}/**"],+ addLabels: ["π§± stack: api"],+ },+ {+ matchFileNames: ["ingestion_server/**"],+ addLabels: ["π§± stack: ingestion server"],+ },+ {+ matchFileNames: ["catalog/**", "indexer_worker/**"],+ addLabels: ["π§± stack: catalog"],+ },+ {+ matchFileNames: ["documentation/**"],+ addLabels: ["π§± stack: documentation"],+ },+ {+ groupName: "python dev dependencies",+ matchDepTypes: [+ "tool.pdm.dev-dependencies",+ "project.optional-dependencies",+ ],+ matchFileNames: [+ "api/**",+ "catalog/**",+ "ingestion_server/**",+ "indexer_worker/**",+ "documentation/**",+ "packages/python/openverse-attribution/**",+ ],+ },+ {+ groupName: "@openverse/eslint-plugin",+ matchFileNames: ["packages/js/eslint-plugin/**"],+ },+ {+ groupName: "tailwind",+ matchPackagePatterns: ["tailwindcss"],+ },+ {+ groupName: "@testing-library",+ matchPackagePrefixes: ["@testing-library"],+ },+ ],+}diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.ymlindex a54186d16..cbabcdb94 100644--- a/.github/workflows/renovate.yml+++ b/.github/workflows/renovate.yml@@ -64,7 +64,9 @@ jobs:- uses: renovatebot/[email protected]with:- configurationFile: .github/renovate.json+ # Renovate recommends _not_ to use any of+ # [these names](https://docs.renovatebot.com/configuration-options/).+ configurationFile: .github/global-renovate.json5token: ${{ secrets.ACCESS_TOKEN }}env:# This enables the cache -- if this is set, it's not necessary to add it to renovate.json.diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 6227c3ffd..f15338703 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -160,6 +160,8 @@ repos:- id: renovate-config-validatorargs:- --strict+ - .github/global-renovate.json5+ - .github/renovate.json5- repo: https://github.com/hadolint/hadolintrev: v2.12.0