mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-09-16 10:21:30 +00:00
Enforce the npm version floor with legacy clients (#411)
`devEngines` is ignored by npm releases such as `10.8.2`, so those clients can install dependencies without applying the seven-day `min-release-age` setting added in #401. Declare the same minimum in `engines.npm` and enable `engine-strict` to make that legacy installer requirement fatal. Keep `devEngines` for its earlier checks on newer npm versions, and pin the build and checksum workflows to Node.js `24.19.0` so their bundled `npm` supports the policy. Related: astral-sh/setup-uv#1026 and astral-sh/ruff#27844 enforce the same legacy-aware `npm` version floor. astral-sh/ruff-action#400 covers Dependabot's update cooldown, and astral-sh/ruff-action#402 separately verifies registry signatures and available provenance. --------- Co-authored-by: zaniebot <242828183+zaniebot@users.noreply.github.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
|
engine-strict = true
|
||||||
ignore-scripts = true
|
ignore-scripts = true
|
||||||
min-release-age = 7
|
min-release-age = 7
|
||||||
|
|||||||
Generated
+3
@@ -31,6 +31,9 @@
|
|||||||
"js-yaml": "^4.1.1",
|
"js-yaml": "^4.1.1",
|
||||||
"ts-jest": "^29.4.6",
|
"ts-jest": "^29.4.6",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"npm": ">=11.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/core": {
|
"node_modules/@actions/core": {
|
||||||
|
|||||||
@@ -5,6 +5,9 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "A GitHub Action to run Ruff, an extremely fast Python linter and code formatter.",
|
"description": "A GitHub Action to run Ruff, an extremely fast Python linter and code formatter.",
|
||||||
"main": "dist/ruff-action/index.cjs",
|
"main": "dist/ruff-action/index.cjs",
|
||||||
|
"engines": {
|
||||||
|
"npm": ">=11.10.0"
|
||||||
|
},
|
||||||
"devEngines": {
|
"devEngines": {
|
||||||
"packageManager": {
|
"packageManager": {
|
||||||
"name": "npm",
|
"name": "npm",
|
||||||
|
|||||||
Reference in New Issue
Block a user