Skip to content

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.json5
new file mode 100644
index 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.json
deleted file mode 100644
index 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.json5
new file mode 100644
index 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.yml
index 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.json5
token: ${{ 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.yaml
index 6227c3ffd..f15338703 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -160,6 +160,8 @@ repos:
- id: renovate-config-validator
args:
- --strict
+ - .github/global-renovate.json5
+ - .github/renovate.json5
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0