Compare commits

...
19 Commits
Author SHA1 Message Date
Kevin Stillhammer 0c50076f12 Bump dependencies (#181) 2025-07-14 10:04:26 +02:00
Gareth Jones 966d2455d2 feat: support reading Ruff version from tools.poetry.dependencies (#177)
While Poetry does now support PEP 508, it's still common to use
`tool.poetry.dependencies` - we for example still use it because
Renovate does not support doing lockfile updates for Poetry when using
PEP 508.

This modifies the version finder logic to support determining the Ruff
version from `pyproject.toml` files that use ``tool.poetry.dependencies`
2025-07-14 09:58:25 +02:00
github-actions[bot]andeifinger b9e360afba chore: update known checksums for 0.12.3 (#180)
chore: update known checksums for 0.12.3

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2025-07-12 06:45:22 +00:00
github-actions[bot]andeifinger 2b785e352d chore: update known checksums for 0.12.2 (#175)
chore: update known checksums for 0.12.2

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2025-07-04 05:47:25 +00:00
github-actions[bot]andeifinger 8c3aa952c0 chore: update known checksums for 0.12.1 (#169)
chore: update known checksums for 0.12.1

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2025-06-27 05:54:55 +00:00
github-actions[bot]andeifinger 52ac3ada91 chore: update known checksums for 0.12.0 (#167)
chore: update known checksums for 0.12.0

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2025-06-18 07:44:35 +00:00
github-actions[bot]andeifinger 813f619ec2 chore: update known checksums for 0.11.13 (#158)
chore: update known checksums for 0.11.13

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2025-06-16 18:00:42 +00:00
Kevin Stillhammer 110a15d08b Fix test-pep440-version-specifier (#165)
It makes no sense to expect a deterministic test when minor versions for
0.11.x are still getting released
2025-06-16 19:55:35 +02:00
Kevin Stillhammer 6228face02 Simplify step check all-tests-passed.needs (#155) 2025-05-27 17:43:44 +02:00
Kevin Stillhammer eaf0ecdd66 Bump dependencies (#152) 2025-05-26 20:48:47 +00:00
Kevin Stillhammer 78b7b9921e Check that all jobs are in all-tests-passed.needs (#151) 2025-05-26 18:36:12 +00:00
Kevin Stillhammer 9b2efb7fd8 Add support for pep440 version specifiers (#150)
Fixes: #147
2025-05-26 20:20:17 +02:00
github-actions[bot]andeifinger da0c801a2d chore: update known checksums for 0.11.11 (#146)
chore: update known checksums for 0.11.11

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2025-05-23 07:25:27 +00:00
robertHowlett 257550e917 docs: Explain that the default behaviour is ruff check (#142)
This tripped me up, I use ruff for both checking & formatting and
expected it to do both by default.
2025-05-19 10:36:40 +00:00
github-actions[bot]andeifinger 94b3590e87 chore: update known checksums for 0.11.10 (#140)
chore: update known checksums for 0.11.10

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2025-05-16 05:15:51 +00:00
github-actions[bot]andeifinger 7a9e8edffe chore: update known checksums for 0.11.9 (#138)
chore: update known checksums for 0.11.9

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2025-05-11 10:20:28 +02:00
Kevin Stillhammer 84f83ecf9e Support versions 0.1.8-0.4.7 (#135)
These versions have different artifact names in the GitHub releases

Fixes: #133
2025-05-07 16:58:28 +02:00
Kevin Stillhammer ea12b8ac41 Inform user of unsupported old version (#134)
Versions older than v0.0.247 do not have binaries in the GitHub releases
2025-05-07 13:28:39 +00:00
github-actions[bot]andeifinger b259b0b299 chore: update known checksums for 0.11.8 (#130)
chore: update known checksums for 0.11.8

Co-authored-by: eifinger <1481961+eifinger@users.noreply.github.com>
2025-05-02 07:03:17 +00:00
16 changed files with 694 additions and 122 deletions
@@ -0,0 +1,35 @@
import * as fs from "node:fs";
import * as yaml from "js-yaml";
interface WorkflowJob {
needs?: string[];
[key: string]: unknown;
}
interface Workflow {
jobs: Record<string, WorkflowJob>;
[key: string]: unknown;
}
const workflow = yaml.load(
fs.readFileSync("../workflows/test.yml", "utf8"),
) as Workflow;
const jobs = Object.keys(workflow.jobs);
const allTestsPassed = workflow.jobs["all-tests-passed"];
const needs: string[] = allTestsPassed.needs || [];
const expectedNeeds = jobs.filter((j) => j !== "all-tests-passed");
const missing = expectedNeeds.filter((j) => !needs.includes(j));
if (missing.length > 0) {
console.error(
`Missing jobs in all-tests-passed needs: ${missing.join(", ")}`,
);
console.info(
"Please add the missing jobs to the needs section of all-tests-passed in test.yml.",
);
process.exit(1);
}
console.log(
"All jobs in test.yml are in the needs section of all-tests-passed.",
);
+62 -3
View File
@@ -24,6 +24,11 @@ jobs:
npm install
- run: |
npm run all
- name: Check all jobs are in all-tests-passed.needs
run: |
tsc check-all-tests-passed-needs.ts
node check-all-tests-passed-needs.js
working-directory: .github/scripts
- name: Make sure no changes from linters are detected
run: |
git diff --exit-code || (echo "::error::Please run 'npm run all' to fix the issues" && exit 1)
@@ -40,10 +45,11 @@ jobs:
src: __tests__/fixtures/python-project
version: latest
test-specific-version:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
ruff-version: ["0.7.4", "0.7", "0.7.x", ">=0.7.0"]
ruff-version: ["0.1.7", "0.1.8", "0.4.7", "0.4.10", "0.7", "0.7.x", ">=0.7.0"]
os: [ ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-14, windows-latest ]
steps:
- uses: actions/checkout@v4
- name: Use version ${{ matrix.ruff-version }}
@@ -51,6 +57,22 @@ jobs:
with:
version: ${{ matrix.ruff-version }}
src: __tests__/fixtures/python-project
test-unsupported-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Try install old version
id: install
continue-on-error: true
uses: ./
with:
version: 0.0.246
src: __tests__/fixtures/python-project
- name: Check if the action failed
run: |
if [ ${{ steps.install.outcome }} == "success" ]; then
exit 1
fi
test-version-from-version-file-pyproject:
runs-on: ubuntu-latest
steps:
@@ -123,6 +145,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use default version from pyproject.toml poetry group dependencies
id: ruff-action
uses: ./
with:
src: __tests__/fixtures/pyproject-dependency-poetry-grouped-project
version-file: __tests__/fixtures/pyproject-dependency-poetry-grouped-project/pyproject.toml
- name: Correct version gets installed
run: |
if [ "$RUFF_VERSION" != "0.8.3" ]; then
exit 1
fi
env:
RUFF_VERSION: ${{ steps.ruff-action.outputs.ruff-version }}
test-default-version-from-pyproject-poetry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use default version from pyproject.toml poetry dependencies
id: ruff-action
uses: ./
with:
@@ -130,7 +169,7 @@ jobs:
version-file: __tests__/fixtures/pyproject-dependency-poetry-project/pyproject.toml
- name: Correct version gets installed
run: |
if [ "$RUFF_VERSION" != "0.8.3" ]; then
if [ "$RUFF_VERSION" != "0.8.6" ]; then
exit 1
fi
env:
@@ -186,6 +225,23 @@ jobs:
fi
env:
RUFF_VERSION: ${{ steps.ruff-action.outputs.ruff-version }}
test-pep440-version-specifier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install version 0.9.10
id: ruff-action
uses: ./
with:
version: ">=0.9.9,<0.10.0"
src: __tests__/fixtures/python-project
- name: Correct version gets installed
run: |
if [ "$RUFF_VERSION" != "0.9.10" ]; then
exit 1
fi
env:
RUFF_VERSION: ${{ steps.ruff-action.outputs.ruff-version }}
test-checksum:
runs-on: ${{ matrix.inputs.os }}
strategy:
@@ -272,14 +328,17 @@ jobs:
- lint
- test-latest-version
- test-specific-version
- test-unsupported-version
- test-version-from-version-file-pyproject
- test-default-version-from-pyproject
- test-default-version-from-pyproject-dev-group
- test-default-version-from-pyproject-dependency-groups
- test-default-version-from-pyproject-poetry-groups
- test-default-version-from-pyproject-poetry
- test-default-version-from-pyproject-optional-dependencies
- test-default-version-from-requirements
- test-semver-range
- test-pep440-version-specifier
- test-checksum
- test-with-explicit-token
- test-args
+15 -4
View File
@@ -4,8 +4,8 @@ A GitHub Action to run [ruff](https://github.com/astral-sh/ruff).
This action is commonly used as a pass/fail test to ensure your repository stays
clean, abiding the [rules](https://docs.astral.sh/ruff/rules/) specified in your
configuration. Though it runs `ruff`, the action can do anything `ruff` can (ex,
fix).
configuration. Though it runs `ruff check` by default, the action can do
anything `ruff` can (ex, fix).
## Contents
@@ -18,7 +18,7 @@ fix).
- [Install specific versions](#install-specific-versions)
- [Install the latest version](#install-the-latest-version)
- [Install a specific version](#install-a-specific-version)
- [Install a version by supplying a semver range](#install-a-version-by-supplying-a-semver-range)
- [Install a version by supplying a semver range or pep440 specifier](#install-a-version-by-supplying-a-semver-range-or-pep440-specifier)
- [Install a version from a specified version file](#install-a-version-from-a-specified-version-file)
- [Validate checksum](#validate-checksum)
- [GitHub authentication token](#github-authentication-token)
@@ -95,6 +95,9 @@ the ruff version to install. If no pyproject.toml file is found, or no ruff vers
`project.dependencies`, `project.optional-dependencies`, or `dependency-groups`,
the latest version is installed.
> [!NOTE]
> This action does only support ruff versions v0.0.247 and above.
#### Install the latest version
```yaml
@@ -113,9 +116,10 @@ the latest version is installed.
version: "0.4.4"
```
#### Install a version by supplying a semver range
#### Install a version by supplying a semver range or pep440 specifier
You can specify a [semver range](https://github.com/npm/node-semver?tab=readme-ov-file#ranges)
or [pep440 specifier](https://peps.python.org/pep-0440/#version-specifiers)
to install the latest version that satisfies the range.
```yaml
@@ -132,6 +136,13 @@ to install the latest version that satisfies the range.
version: "0.4.x"
```
```yaml
- name: Install a pep440-specifier-satisfying version of ruff
uses: astral-sh/ruff-action@v3
with:
version: ">=0.11.10,<0.12.0"
```
#### Install a version from a specified version file
You can specify a file to read the version from.
@@ -0,0 +1,14 @@
[project]
name = "pyproject-dependency-poetry-grouped-project"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
[tool.poetry.group.dev.dependencies]
sphinx = "*"
ruff = "0.8.3"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
@@ -0,0 +1,2 @@
def hello() -> str:
return "Hello from python-project!"
@@ -5,9 +5,9 @@ description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
[tool.poetry.group.dev.dependencies]
[tool.poetry.dependencies]
sphinx = "*"
ruff = "0.8.3"
ruff = "~0.8.2"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
Generated Vendored
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+126 -92
View File
@@ -12,18 +12,20 @@
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/tool-cache": "^2.0.2",
"@octokit/core": "^6.1.4",
"@octokit/plugin-paginate-rest": "^11.4.3",
"@octokit/plugin-rest-endpoint-methods": "^13.3.1",
"smol-toml": "^1.3.1"
"@octokit/core": "^7.0.3",
"@octokit/plugin-paginate-rest": "^13.0.1",
"@octokit/plugin-rest-endpoint-methods": "^16.0.0",
"@renovatebot/pep440": "^4.1.0",
"smol-toml": "^1.4.1"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/node": "^22.13.10",
"@types/semver": "^7.5.8",
"@types/js-yaml": "^4.0.9",
"@types/node": "^24.0.13",
"@types/semver": "^7.7.0",
"@vercel/ncc": "^0.38.3",
"js-yaml": "^4.1.0",
"typescript": "^5.8.2"
"typescript": "^5.8.3"
}
},
"node_modules/@actions/core": {
@@ -233,138 +235,165 @@
}
},
"node_modules/@octokit/auth-token": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.2.tgz",
"integrity": "sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw==",
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-6.0.0.tgz",
"integrity": "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==",
"license": "MIT",
"engines": {
"node": ">= 18"
"node": ">= 20"
}
},
"node_modules/@octokit/core": {
"version": "6.1.4",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.4.tgz",
"integrity": "sha512-lAS9k7d6I0MPN+gb9bKDt7X8SdxknYqAMh44S5L+lNqIN2NuV8nvv3g8rPp7MuRxcOpxpUIATWprO0C34a8Qmg==",
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.3.tgz",
"integrity": "sha512-oNXsh2ywth5aowwIa7RKtawnkdH6LgU1ztfP9AIUCQCvzysB+WeU8o2kyyosDPwBZutPpjZDKPQGIzzrfTWweQ==",
"license": "MIT",
"dependencies": {
"@octokit/auth-token": "^5.0.0",
"@octokit/graphql": "^8.1.2",
"@octokit/request": "^9.2.1",
"@octokit/request-error": "^6.1.7",
"@octokit/types": "^13.6.2",
"before-after-hook": "^3.0.2",
"@octokit/auth-token": "^6.0.0",
"@octokit/graphql": "^9.0.1",
"@octokit/request": "^10.0.2",
"@octokit/request-error": "^7.0.0",
"@octokit/types": "^14.0.0",
"before-after-hook": "^4.0.0",
"universal-user-agent": "^7.0.0"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
}
},
"node_modules/@octokit/endpoint": {
"version": "10.1.3",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.3.tgz",
"integrity": "sha512-nBRBMpKPhQUxCsQQeW+rCJ/OPSMcj3g0nfHn01zGYZXuNDvvXudF/TYY6APj5THlurerpFN4a/dQAIAaM6BYhA==",
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.0.tgz",
"integrity": "sha512-hoYicJZaqISMAI3JfaDr1qMNi48OctWuOih1m80bkYow/ayPw6Jj52tqWJ6GEoFTk1gBqfanSoI1iY99Z5+ekQ==",
"license": "MIT",
"dependencies": {
"@octokit/types": "^13.6.2",
"@octokit/types": "^14.0.0",
"universal-user-agent": "^7.0.2"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
}
},
"node_modules/@octokit/graphql": {
"version": "8.1.2",
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.2.tgz",
"integrity": "sha512-bdlj/CJVjpaz06NBpfHhp4kGJaRZfz7AzC+6EwUImRtrwIw8dIgJ63Xg0OzV9pRn3rIzrt5c2sa++BL0JJ8GLw==",
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.1.tgz",
"integrity": "sha512-j1nQNU1ZxNFx2ZtKmL4sMrs4egy5h65OMDmSbVyuCzjOcwsHq6EaYjOTGXPQxgfiN8dJ4CriYHk6zF050WEULg==",
"license": "MIT",
"dependencies": {
"@octokit/request": "^9.1.4",
"@octokit/types": "^13.6.2",
"@octokit/request": "^10.0.2",
"@octokit/types": "^14.0.0",
"universal-user-agent": "^7.0.0"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
}
},
"node_modules/@octokit/openapi-types": {
"version": "23.0.1",
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz",
"integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g=="
"version": "25.1.0",
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-25.1.0.tgz",
"integrity": "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA==",
"license": "MIT"
},
"node_modules/@octokit/plugin-paginate-rest": {
"version": "11.4.3",
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.3.tgz",
"integrity": "sha512-tBXaAbXkqVJlRoA/zQVe9mUdb8rScmivqtpv3ovsC5xhje/a+NOCivs7eUhWBwCApJVsR4G5HMeaLbq7PxqZGA==",
"version": "13.0.1",
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-13.0.1.tgz",
"integrity": "sha512-m1KvHlueScy4mQJWvFDCxFBTIdXS0K1SgFGLmqHyX90mZdCIv6gWBbKRhatxRjhGlONuTK/hztYdaqrTXcFZdQ==",
"license": "MIT",
"dependencies": {
"@octokit/types": "^13.7.0"
"@octokit/types": "^14.1.0"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
},
"peerDependencies": {
"@octokit/core": ">=6"
}
},
"node_modules/@octokit/plugin-rest-endpoint-methods": {
"version": "13.3.1",
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.1.tgz",
"integrity": "sha512-o8uOBdsyR+WR8MK9Cco8dCgvG13H1RlM1nWnK/W7TEACQBFux/vPREgKucxUfuDQ5yi1T3hGf4C5ZmZXAERgwQ==",
"version": "16.0.0",
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-16.0.0.tgz",
"integrity": "sha512-kJVUQk6/dx/gRNLWUnAWKFs1kVPn5O5CYZyssyEoNYaFedqZxsfYs7DwI3d67hGz4qOwaJ1dpm07hOAD1BXx6g==",
"license": "MIT",
"dependencies": {
"@octokit/types": "^13.8.0"
"@octokit/types": "^14.1.0"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
},
"peerDependencies": {
"@octokit/core": ">=6"
}
},
"node_modules/@octokit/request": {
"version": "9.2.2",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.2.2.tgz",
"integrity": "sha512-dZl0ZHx6gOQGcffgm1/Sf6JfEpmh34v3Af2Uci02vzUYz6qEN6zepoRtmybWXIGXFIK8K9ylE3b+duCWqhArtg==",
"version": "10.0.3",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.3.tgz",
"integrity": "sha512-V6jhKokg35vk098iBqp2FBKunk3kMTXlmq+PtbV9Gl3TfskWlebSofU9uunVKhUN7xl+0+i5vt0TGTG8/p/7HA==",
"license": "MIT",
"dependencies": {
"@octokit/endpoint": "^10.1.3",
"@octokit/request-error": "^6.1.7",
"@octokit/types": "^13.6.2",
"fast-content-type-parse": "^2.0.0",
"@octokit/endpoint": "^11.0.0",
"@octokit/request-error": "^7.0.0",
"@octokit/types": "^14.0.0",
"fast-content-type-parse": "^3.0.0",
"universal-user-agent": "^7.0.2"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
}
},
"node_modules/@octokit/request-error": {
"version": "6.1.7",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.7.tgz",
"integrity": "sha512-69NIppAwaauwZv6aOzb+VVLwt+0havz9GT5YplkeJv7fG7a40qpLt/yZKyiDxAhgz0EtgNdNcb96Z0u+Zyuy2g==",
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.0.0.tgz",
"integrity": "sha512-KRA7VTGdVyJlh0cP5Tf94hTiYVVqmt2f3I6mnimmaVz4UG3gQV/k4mDJlJv3X67iX6rmN7gSHCF8ssqeMnmhZg==",
"license": "MIT",
"dependencies": {
"@octokit/types": "^13.6.2"
"@octokit/types": "^14.0.0"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
}
},
"node_modules/@octokit/types": {
"version": "13.8.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.8.0.tgz",
"integrity": "sha512-x7DjTIbEpEWXK99DMd01QfWy0hd5h4EN+Q7shkdKds3otGQP+oWE/y0A76i1OvH9fygo4ddvNf7ZvF0t78P98A==",
"version": "14.1.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-14.1.0.tgz",
"integrity": "sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==",
"license": "MIT",
"dependencies": {
"@octokit/openapi-types": "^23.0.1"
"@octokit/openapi-types": "^25.1.0"
}
},
"node_modules/@renovatebot/pep440": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/@renovatebot/pep440/-/pep440-4.1.0.tgz",
"integrity": "sha512-mo2RxnOSp78Njt1HmgMwjl6FapP4OyIS8HypJlymCvN7AIV2Xf5PmZfl/E3O1WWZ6IjKrfsEAaPWFMi8tnkq3g==",
"license": "Apache-2.0",
"engines": {
"node": "^20.9.0 || ^22.11.0",
"pnpm": "^9.0.0"
}
},
"node_modules/@types/js-yaml": {
"version": "4.0.9",
"resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz",
"integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/node": {
"version": "22.13.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz",
"integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==",
"version": "24.0.13",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.13.tgz",
"integrity": "sha512-Qm9OYVOFHFYg3wJoTSrz80hoec5Lia/dPp84do3X7dZvLikQvM1YpmvTBEdIr/e+U8HTkFjLHLnl78K/qjf+jQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~6.20.0"
"undici-types": "~7.8.0"
}
},
"node_modules/@types/semver": {
"version": "7.5.8",
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",
"integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==",
"dev": true
"version": "7.7.0",
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.7.0.tgz",
"integrity": "sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==",
"dev": true,
"license": "MIT"
},
"node_modules/@vercel/ncc": {
"version": "0.38.3",
@@ -382,14 +411,15 @@
"dev": true
},
"node_modules/before-after-hook": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz",
"integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A=="
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-4.0.0.tgz",
"integrity": "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==",
"license": "Apache-2.0"
},
"node_modules/fast-content-type-parse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-2.0.1.tgz",
"integrity": "sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q==",
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-3.0.0.tgz",
"integrity": "sha512-ZvLdcY8P+N8mGQJahJV5G4U88CSvT1rP8ApL6uETe88MBXrBHAkZlSEySdUlyztF7ccb+Znos3TFqaepHxdhBg==",
"funding": [
{
"type": "github",
@@ -399,7 +429,8 @@
"type": "opencollective",
"url": "https://opencollective.com/fastify"
}
]
],
"license": "MIT"
},
"node_modules/js-yaml": {
"version": "4.1.0",
@@ -422,9 +453,10 @@
}
},
"node_modules/smol-toml": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.3.1.tgz",
"integrity": "sha512-tEYNll18pPKHroYSmLLrksq233j021G0giwW7P3D24jC54pQ5W5BXMsQ/Mvw1OJCmEYDgY+lrzT+3nNUtoNfXQ==",
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.4.1.tgz",
"integrity": "sha512-CxdwHXyYTONGHThDbq5XdwbFsuY4wlClRGejfE2NtwUtiHYsP1QtNsHb/hnj31jKYSchztJsaA8pSQoVzkfCFg==",
"license": "BSD-3-Clause",
"engines": {
"node": ">= 18"
},
@@ -441,9 +473,9 @@
}
},
"node_modules/typescript": {
"version": "5.8.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz",
"integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==",
"version": "5.8.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
"dev": true,
"license": "Apache-2.0",
"bin": {
@@ -455,9 +487,10 @@
}
},
"node_modules/undici": {
"version": "5.28.5",
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.5.tgz",
"integrity": "sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA==",
"version": "5.29.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz",
"integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==",
"license": "MIT",
"dependencies": {
"@fastify/busboy": "^2.0.0"
},
@@ -466,16 +499,17 @@
}
},
"node_modules/undici-types": {
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
"version": "7.8.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz",
"integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==",
"dev": true,
"license": "MIT"
},
"node_modules/universal-user-agent": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz",
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.3.tgz",
"integrity": "sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==",
"license": "ISC"
}
}
}
+9 -7
View File
@@ -25,17 +25,19 @@
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/tool-cache": "^2.0.2",
"@octokit/core": "^6.1.4",
"@octokit/plugin-paginate-rest": "^11.4.3",
"@octokit/plugin-rest-endpoint-methods": "^13.3.1",
"smol-toml": "^1.3.1"
"@octokit/core": "^7.0.3",
"@octokit/plugin-paginate-rest": "^13.0.1",
"@octokit/plugin-rest-endpoint-methods": "^16.0.0",
"@renovatebot/pep440": "^4.1.0",
"smol-toml": "^1.4.1"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/node": "^22.13.10",
"@types/semver": "^7.5.8",
"@types/js-yaml": "^4.0.9",
"@types/node": "^24.0.13",
"@types/semver": "^7.7.0",
"@vercel/ncc": "^0.38.3",
"js-yaml": "^4.1.0",
"typescript": "^5.8.2"
"typescript": "^5.8.3"
}
}
+340
View File
@@ -1,5 +1,345 @@
// AUTOGENERATED_DO_NOT_EDIT
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
"aarch64-apple-darwin-0.12.3":
"5769e4841870d1f7c17f12a7d1437222e8035eded52f93c54c035c770dbffebb",
"aarch64-pc-windows-msvc-0.12.3":
"25056f8a5ca19f87e4d8e13b744077ad47e122dbef454a6ecf572d9d92d5dbf1",
"aarch64-unknown-linux-gnu-0.12.3":
"d63a773c9e2854d4d726bc8ac0d919736e8f8e683b5a54caea0ad470ce233f0c",
"aarch64-unknown-linux-musl-0.12.3":
"7890e49b12c1321688540324a7788457a22711657301598402cba1a9e9be6607",
"arm-unknown-linux-musleabihf-0.12.3":
"f9d90927ce787f2543c2bca779383fc849c13a6234604e538a77d8337a0a3462",
"armv7-unknown-linux-gnueabihf-0.12.3":
"822ce8b913a53957a7d6877ac905fe7787bdc790fbd9dba3aa962827fc4e5162",
"armv7-unknown-linux-musleabihf-0.12.3":
"d3061cd584c331ddf211a32cb99cb15e7cbf8e5d6d8d471b559d389186e378dd",
"i686-pc-windows-msvc-0.12.3":
"500aebc9beda7ca2f4a00de54f950ef0912a8635d1a0dbfe5df65346e421e4dc",
"i686-unknown-linux-gnu-0.12.3":
"d651632b053fa048c7f6d6429606b4e19f11e69111124c1a2bc0eee0fbf329ff",
"i686-unknown-linux-musl-0.12.3":
"43ef80b00ed8524684fa50876e95ff36d2f270c91891987400fa9610c9253d8f",
"powerpc64-unknown-linux-gnu-0.12.3":
"3a71736656982bdc9a6a857746fd153e076f2ddb3dccb7c3172847c7737ca448",
"powerpc64le-unknown-linux-gnu-0.12.3":
"6db433e006a43a4064a2371e1721764ed95753550ae0be82329cafddd6d3462b",
"s390x-unknown-linux-gnu-0.12.3":
"a88bf4039b788d830c8dc190dfdf28166e957fc1d093a8b2ae7247ad14ae1b96",
"x86_64-apple-darwin-0.12.3":
"472a4790db11a8bcd79cf7b731fb1c036c376f9cc4e6532099f8f39a6f86b9bb",
"x86_64-pc-windows-msvc-0.12.3":
"37dc6f2f5756421fc59fe5f841ecaa92beee38a39751dfe5a42bdc13992da3d5",
"x86_64-unknown-linux-gnu-0.12.3":
"9e3a139c5458d4b14d8e2130ec42121ad5801b528497b298e28b68972507383c",
"x86_64-unknown-linux-musl-0.12.3":
"6ee9216ba4f7fd761e68bd5c23958e662c67fcff8f49e511660d557431b4bd7c",
"aarch64-apple-darwin-0.12.2":
"633331c47d0775bbf4924be69896de6e6613c86685b0c58a0079adad2213288b",
"aarch64-pc-windows-msvc-0.12.2":
"36513f0a1ab3b88060e62857e3db0eb53422fbc824ebb0ba65938a292d01939f",
"aarch64-unknown-linux-gnu-0.12.2":
"734405a442ef5fd263275a76bb4fa7d669318861b26cf9885672ad21c82689c3",
"aarch64-unknown-linux-musl-0.12.2":
"077d87a300129246c7857cb2ef2e454064b41f1976173f37b379acf36391cbbb",
"arm-unknown-linux-musleabihf-0.12.2":
"d11b1371f659304fef8c03e28fcd79a2bd0fb31cb0a90e803030cf7982e8589a",
"armv7-unknown-linux-gnueabihf-0.12.2":
"b81a97799ecb045ded09c022a0b2a38834826d8623475fcfe35d8287b41f2b2f",
"armv7-unknown-linux-musleabihf-0.12.2":
"806218760b038bf059f5e84169cd44efc9998547b2d178643669a4411ee9ba46",
"i686-pc-windows-msvc-0.12.2":
"568195cffb23e9e650e55cf8bc7be4268cf5a6906cbd6343ea8def5c70fab8a2",
"i686-unknown-linux-gnu-0.12.2":
"ff1a1f3663cf9601a4c6ae1935435e682eb341e0d4c8a8511db00c7571a2bb62",
"i686-unknown-linux-musl-0.12.2":
"c5036034779969fa661103be20f886106f3eb44a8d1aa4d992b3612071456f99",
"powerpc64-unknown-linux-gnu-0.12.2":
"91178128af0e34a0530a5e17d1fe1a2824f7a9a2e4b1a8809b5be5aff11cd3a8",
"powerpc64le-unknown-linux-gnu-0.12.2":
"5ef9d77112aa5ce699a57be29ef0b7837740ac71d34f3c0d72f27478993a68da",
"s390x-unknown-linux-gnu-0.12.2":
"0adfef00e795810a3b5ecd55c80364b3c89e33dd3728b5689a4528eb62b40d22",
"x86_64-apple-darwin-0.12.2":
"8d4aa6c8e6d856c8f62e81386d5235803b985422e7a955dc43c287895276f63b",
"x86_64-pc-windows-msvc-0.12.2":
"7562b9383e9c195e17b6f524165dc6da6435a76bf549a5132977dbcf598c890d",
"x86_64-unknown-linux-gnu-0.12.2":
"eb37b0eb7f4742b0d3a6edab3a11846c5c07e641987a0c40a944ddb89239d977",
"x86_64-unknown-linux-musl-0.12.2":
"2ebc92ad3089245c46cfe793838a27be1c635c413db7dfc375c9ad7ee37b3e7f",
"aarch64-apple-darwin-0.12.1":
"f33ec69d83f713e0ff2cb720969325bb1553e43978e2f1c21498bd31e11fc643",
"aarch64-pc-windows-msvc-0.12.1":
"a63061136085e15915514205297e432bb178ca2f4ce5294b12f98be9c60470e9",
"aarch64-unknown-linux-gnu-0.12.1":
"2e42713b3b544c382e969029cf6019c99df09b4069f6a3a828a9be259f3237c0",
"aarch64-unknown-linux-musl-0.12.1":
"cade8ed7dde323d5592928c0ce75c78c34d514cc51e044cb0d0f7766d3c7a2b7",
"arm-unknown-linux-musleabihf-0.12.1":
"15be4817abc62c105f593314395fef3bacf1f37a375b2c1e5271c330b0953f8c",
"armv7-unknown-linux-gnueabihf-0.12.1":
"39297b08493b01f8e90146fae33aa5280fafe07045b381ecbb5ec77f3715d44a",
"armv7-unknown-linux-musleabihf-0.12.1":
"c7a084c3ca22d7d320f92109da5e05ebea6b9fe432a2ee3a16a9a86b6388a596",
"i686-pc-windows-msvc-0.12.1":
"6ce28e584a294f843dc278bcd7fc88db02c56068faebdafad0bd552f2e355af9",
"i686-unknown-linux-gnu-0.12.1":
"aae32a5582e6b93111ef56d98d6ac6bdbf0c9f4bb1ca32f7df0a7b957d403e81",
"i686-unknown-linux-musl-0.12.1":
"2deecc1daa1182898c43f80083911103494076e86ef64c33a73824ac05bb1266",
"powerpc64-unknown-linux-gnu-0.12.1":
"19d346f40b7efc4700c1b0b4e4b10c8f075d7e3dbb7ea13bc09868300a2eef36",
"powerpc64le-unknown-linux-gnu-0.12.1":
"70f25366b313ca2b1f6ea5233bc6f08e4ad4256994e7356f1cea1ae8b53bb5e3",
"s390x-unknown-linux-gnu-0.12.1":
"2bb70c4f029ebbe05ec0dd546dfe8bf52a918a4404c7b5dc85f2aef30beee20c",
"x86_64-apple-darwin-0.12.1":
"eb1728cfd8b969079e232047c70ece00dbb110248b61dd5f9b7e57191fd466c1",
"x86_64-pc-windows-msvc-0.12.1":
"ed16ae044866378c27855f44400c1eb0db8ecec26ef07582dae1d550b968d9fe",
"x86_64-unknown-linux-gnu-0.12.1":
"61357b8326d116113596a3d8e9f2398c33f0d21e0f99d50d9e03ac9578194d48",
"x86_64-unknown-linux-musl-0.12.1":
"490102d2426a2941dea07af49dc8befbe4f0d2c29dfeb4290adde824a10099ed",
"aarch64-apple-darwin-0.12.0":
"a72d648a24030d9b34c65043b348cc3ab40b157e7b78e65098fb88ea317774f1",
"aarch64-pc-windows-msvc-0.12.0":
"366ef0d9cc20c2d9f396f81ff3365d18a1ebdf1c7d2cbcbbb10c6fe82987f2b1",
"aarch64-unknown-linux-gnu-0.12.0":
"8e22a56ac726102512dcd5b1a503c37a5155bdd4430d97b89e994e5ff3614f39",
"aarch64-unknown-linux-musl-0.12.0":
"b58a162e297ba70e36c788d4c576025e939d29f11f46f22e448867571cad7d10",
"arm-unknown-linux-musleabihf-0.12.0":
"1297faed2157db79236618400231476d2f878107e09ae9c79f4ec01f357f3f91",
"armv7-unknown-linux-gnueabihf-0.12.0":
"6c7ed923f359794be34aa5113f12e923374b5e0d8a05f80d2a449f1a951aa1a7",
"armv7-unknown-linux-musleabihf-0.12.0":
"ca96fa7afe2c3ac53a3269664ba265c3f02c4aa95e0ddaf5aef5f09661cc7b38",
"i686-pc-windows-msvc-0.12.0":
"d371f72753b7a4a8ff1cb8596a65c794bb864be3a7654c399e8fb73826f5d8d2",
"i686-unknown-linux-gnu-0.12.0":
"65ef09a64601dcdc07cebb5041cccc9425da8e57fd788388c2a7f1ed45b473de",
"i686-unknown-linux-musl-0.12.0":
"bcf10ac6977c2fb0ba9c5ff8a02733f68c2b6affb706606c7c7571ef1d4c7358",
"powerpc64-unknown-linux-gnu-0.12.0":
"41f9f08aea909f579930e7cb22907ff42698af5cef19e6f2d2653787a051d647",
"powerpc64le-unknown-linux-gnu-0.12.0":
"d23cd9ee0b687b9080dca8c357eadcc3a3944fed01fecad4e00c3f0596fea9f8",
"s390x-unknown-linux-gnu-0.12.0":
"c033fba4227bf4b831e015ecbdf38ceacb6329dcc2d9e5c3f6c99ad3bbdc0780",
"x86_64-apple-darwin-0.12.0":
"df314c2c6623c0bba40c988842efcd249d7a9a2480d0de9570ca18f75a2e4b9a",
"x86_64-pc-windows-msvc-0.12.0":
"b2206e1da2f08cdb46e1e5cdafdb6b1d307bb568cc299111742173843d340db3",
"x86_64-unknown-linux-gnu-0.12.0":
"1a2194e90cc4836b0c56820eb282faf17180db2ee4572f91c91a2d6a432a2306",
"x86_64-unknown-linux-musl-0.12.0":
"03c554016d0638182694e69aa222341c4c762d9ea982b8dfe712d757c806c76a",
"aarch64-apple-darwin-0.11.13":
"7d5e8feea7ee5c3962807996cad557e8a0c4d676c1cba6223bfb0e8b2ca07723",
"aarch64-pc-windows-msvc-0.11.13":
"67c4e1196d798ab8e4c0fb3fc81e3799ec9fcab1d236f286d348dcd6dfe4cfc2",
"aarch64-unknown-linux-gnu-0.11.13":
"551af2ebc439d8268dcaf871ea60ad035f688728d30943dcbb2bf775e105213e",
"aarch64-unknown-linux-musl-0.11.13":
"1ff8292d610302bc20791f6ab264de499b6d2fbf89030fef915908c564a78e82",
"arm-unknown-linux-musleabihf-0.11.13":
"29673b677d883af356d091b286768017ed9a4ed441d90e6efe3d67d90472095e",
"armv7-unknown-linux-gnueabihf-0.11.13":
"c538bedebdb64be55032ff3bd152740102398da4c4623eb61161ec3527b19354",
"armv7-unknown-linux-musleabihf-0.11.13":
"f08585d66b9148f3350601ce98d60002838b5055d9998239b70039d1c5f7a938",
"i686-pc-windows-msvc-0.11.13":
"2f226cee3dfc3964928e7cac890f022fa034bc4d1fb9b6124260f5dddd23acf2",
"i686-unknown-linux-gnu-0.11.13":
"dc36050b624fd9a9abf2c9a8547773ef20d670646ea471b62feedddda26a9e48",
"i686-unknown-linux-musl-0.11.13":
"184deb0a381d73b12c0250b95e70f4517832dc035f252f5f2f32ed10f41f2d6a",
"powerpc64-unknown-linux-gnu-0.11.13":
"bdbb5abbb705829e5c759f549453679d875f7e7bc8e71cec1255691a3252707a",
"powerpc64le-unknown-linux-gnu-0.11.13":
"c1bc862c95f8eb68e164f570c5474c671bf7fe621c03bab51fb5b612ff26b86f",
"s390x-unknown-linux-gnu-0.11.13":
"db6d98824ee7714933b6457b1463a2d6eaf99f41ca4f9e2d7c22bb03b953bc6f",
"x86_64-apple-darwin-0.11.13":
"8dcc61306472f75c07af6d0446060e26227d773cee319d21900ac3a1d7bc4955",
"x86_64-pc-windows-msvc-0.11.13":
"d77fb4ed36392337d334bf9bcef1c5d91ec221e96c53ae8aa147e922c71ddb64",
"x86_64-unknown-linux-gnu-0.11.13":
"01aa32d29d00876b8d1429c617ed63a00b1fc81abfa4183bb05c9cb647fbc3d0",
"x86_64-unknown-linux-musl-0.11.13":
"4540e8bc5b2af73c4b79e9e993724b044310eea4aa9003cf05ed4bdee6c25735",
"aarch64-apple-darwin-0.11.12":
"6e8bce88be5063d3378b6fa51430655884794f6cd04a059721839dc012b7ee7d",
"aarch64-pc-windows-msvc-0.11.12":
"cde9c77e457edc98dd9f2ac39f1415d00117c564e7620e055da260fc05085476",
"aarch64-unknown-linux-gnu-0.11.12":
"a14bf81d237e10abd7fc751cf55249cef10e7952a4267fb9425296e12132f2f2",
"aarch64-unknown-linux-musl-0.11.12":
"80f0b463a7417b93132d7411f2ed88170b3e8176abfbd49b1fe1efae7afe4d90",
"arm-unknown-linux-musleabihf-0.11.12":
"77618903fd427140747782275e543038338653a59d274650460ecdfe8106568b",
"armv7-unknown-linux-gnueabihf-0.11.12":
"edd175894965c1b28a1cf813e4fcca030539ef69d768f79f8bd77b15641a53ed",
"armv7-unknown-linux-musleabihf-0.11.12":
"10709f963cbbb1c7c0c88f0302be325f0f91db8880c05b87685769b907431d26",
"i686-pc-windows-msvc-0.11.12":
"1bf29679dd5206c9934d42040a5bea6398ff34148c888d89100b8469178cba3c",
"i686-unknown-linux-gnu-0.11.12":
"2d2a09aaf570d35e8a940ee0b8451c7e5441aa7bddc114162bf76e0390c2093e",
"i686-unknown-linux-musl-0.11.12":
"d5f6b5e87e65b988acc2687a64fe8785d99a9a60d18f0a213bc5570d95d07ad3",
"powerpc64-unknown-linux-gnu-0.11.12":
"7ecd577a4f6d741e719ace85a497af26af5ccaad26fd68461245a6bbd9cbf74f",
"powerpc64le-unknown-linux-gnu-0.11.12":
"3b298e4e22bf5fbdd60786bf28f483341fe2ee70a2059dcdacc9bac673234285",
"s390x-unknown-linux-gnu-0.11.12":
"4b7626c4d7f35acf40ff59f3d1abe555cd41afc8de357a997f2de742556d15fb",
"x86_64-apple-darwin-0.11.12":
"a843796077ceba6aeb4a07bda0756989cb1c517ab4d1b929ead9efcde6fc17e6",
"x86_64-pc-windows-msvc-0.11.12":
"e82daaa5e48d736188701453c299bc8f88499688ebdada4b1abeb723965ffcd9",
"x86_64-unknown-linux-gnu-0.11.12":
"a2a6c25916f05b351164ae638169b9edb2149ad7f33e45360beb1ac271eae34e",
"x86_64-unknown-linux-musl-0.11.12":
"148e03ce15ad569066120905c86e446e066c0f7c4f986d03825c273c5e2147e2",
"aarch64-apple-darwin-0.11.11":
"814ccb26bed9c027bfc20ac88d33494ab0be62721757c73be70e26c23efbb3f7",
"aarch64-pc-windows-msvc-0.11.11":
"7c43804a3a9646edbc70eda6dab061343a5545844dbaff82ba472df3be4b74e0",
"aarch64-unknown-linux-gnu-0.11.11":
"26bc61fce6be2f358f656c7cc5b33725aafdc6ae6b21ee48fde10ad0d9b702ea",
"aarch64-unknown-linux-musl-0.11.11":
"3ca33d9b68b8b0bc7e3673b7638910ac2f7c5399303b37bec4d13c005481a78a",
"arm-unknown-linux-musleabihf-0.11.11":
"9d5cf3a8e5c495156479a7bb0a438f0f4bec6dbf69cdd48ede1cd508c41cd43b",
"armv7-unknown-linux-gnueabihf-0.11.11":
"acb854e89c24333a17cc2aba7adabab7314dc16bb92b52094661f9ca5843703f",
"armv7-unknown-linux-musleabihf-0.11.11":
"4e48259a71c1e806e64801bb3a55df555ee8b62360fb15f19e7ab3c496ee6f10",
"i686-pc-windows-msvc-0.11.11":
"507a588d22c9eb3558c86e85d50f6cbc099d52444dc05290c61ae8454aee25de",
"i686-unknown-linux-gnu-0.11.11":
"bd1e258d14a9a399bbb6fac468c3bfdc464858c028dd48ae3517f35b01a310c9",
"i686-unknown-linux-musl-0.11.11":
"4de74178a1e0181ed56b623943a3198c4f7f90da918d050e846a1468050bf4ad",
"powerpc64-unknown-linux-gnu-0.11.11":
"da883ef2174136c0d50570a16c01f57fd99c55e05914ba35dafd37b49e5f0331",
"powerpc64le-unknown-linux-gnu-0.11.11":
"ecd54e2738005a345ecc80f834f89a3d55c791e89ad43ca24becfbed79d490a4",
"s390x-unknown-linux-gnu-0.11.11":
"7a12eb9e85126cf9018842bc206b763211e9295ad6906e46c73b76ae110924ba",
"x86_64-apple-darwin-0.11.11":
"8bef00e82bc07ea26b45adcffc3d55b2d0821f3a3e4d5f441f4dd4ad608fc1be",
"x86_64-pc-windows-msvc-0.11.11":
"b7619ff27098a4d7f37c52fb8fc61ccfe677aaade7722a385b40f8d5273ebddd",
"x86_64-unknown-linux-gnu-0.11.11":
"4883053606fc9efed6f8860145bcbf66f0f421684054c156c84b04bd9bf1638f",
"x86_64-unknown-linux-musl-0.11.11":
"bb64b083767a5fd0a62e10e9a35614974ad53025e2878cf14a0c698680e6c30c",
"aarch64-apple-darwin-0.11.10":
"1c4187c5ecd76535b76e991af1114d9c9947fe69e6d1a69c9ed6723d6777a53e",
"aarch64-pc-windows-msvc-0.11.10":
"765234e319c8fce0b0216f570f4480b7a7b77d019347fa301536b808c245375b",
"aarch64-unknown-linux-gnu-0.11.10":
"a39ff81bfe023d55008943f11221d49759d73b9fe6bf76584626cfcdd33d8684",
"aarch64-unknown-linux-musl-0.11.10":
"acddbf808ba83c9dda01391ddd1c7f0c23d36f1f2cbbee6290d98363f3e4cafc",
"arm-unknown-linux-musleabihf-0.11.10":
"8647e140f06719c68220157205ef21644901dfab8daefe72cf08317e45b212d4",
"armv7-unknown-linux-gnueabihf-0.11.10":
"49eab0e5ec80c1d1a13737d5ad0ca69ac79227ece39750e4db38ad9f3a20f3f0",
"armv7-unknown-linux-musleabihf-0.11.10":
"51bf490bd5a357d76dd5ca7d5aa6724e4445a413720e3d370cf28194f12800fc",
"i686-pc-windows-msvc-0.11.10":
"e0aab393a0e9da99e7cadcfbad7bfa6abbe3de9e1fc69eb3e649ed27769fd7a1",
"i686-unknown-linux-gnu-0.11.10":
"5cab3435770f98a3171e3890b870b2bf682f1639470d46e1538a2117a0072464",
"i686-unknown-linux-musl-0.11.10":
"f98f40b6a9fddde57459ce635b94cacc417a6682aeab24ee1091f7486c64eaee",
"powerpc64-unknown-linux-gnu-0.11.10":
"084d19d34b553212aceb988f2de97f304a214f0c93a230366bae55351d0c552c",
"powerpc64le-unknown-linux-gnu-0.11.10":
"02abc4c8d4f40d4c2a02a4fe1edf6061ac724e95b0c65e5ccfd968b150d7154d",
"s390x-unknown-linux-gnu-0.11.10":
"379ae3fa5b61d8e7433cf9fa5c76aec8a7e3f17e686f55100cccb13765b4c8f4",
"x86_64-apple-darwin-0.11.10":
"25f0a8b819ea5c9377be02fd98c363ffb5659c35358881a1ce909f30b362cb39",
"x86_64-pc-windows-msvc-0.11.10":
"d77bc4ecdb0f50f5a70422db90ec735caf71c3ea3e201e6e84a78fed695a4950",
"x86_64-unknown-linux-gnu-0.11.10":
"ade458637abe06ff6780e0b3a5fdd281da552d33eb75b954fc2a27278258b856",
"x86_64-unknown-linux-musl-0.11.10":
"8765d2f71c422f60a1456a2b2d9b2ee2ab286cb4859a774b5efb0a837a07f6dd",
"aarch64-apple-darwin-0.11.9":
"d7955d8cf0b96471757d9733b21576b00baebecc056e3382d7023f092bfa8526",
"aarch64-pc-windows-msvc-0.11.9":
"bebd2f05e37101023d32ca6b0a6ca1f619b0c5faccde7df0960d96bcc2bcf8bc",
"aarch64-unknown-linux-gnu-0.11.9":
"8dffb447ee07405dcb0939666703a53ac38d6703abbe48db6d5ec8189544dd37",
"aarch64-unknown-linux-musl-0.11.9":
"a3d6ee64ce182345d88ce2d1a2960d9261d2bcf6746b85be769b31e27349f6fb",
"arm-unknown-linux-musleabihf-0.11.9":
"1c480bcfad71617754f9518e44db9670ff87145b79d03dec3db4b50c5a743dc3",
"armv7-unknown-linux-gnueabihf-0.11.9":
"2a8739fb4544a2da95d3f64f43a01d86468dc4c72d47f0cdea4dbd36767e5b3b",
"armv7-unknown-linux-musleabihf-0.11.9":
"5cfb13bad415b339162d60ca044c248130882ab014d648532fe789540f8fc80d",
"i686-pc-windows-msvc-0.11.9":
"17dd0dc46c38bf1fe4af50f1cc5b128054a43182cfb643d5ab2ac0382e94719b",
"i686-unknown-linux-gnu-0.11.9":
"472c13baa143869103ab40f8281d39691abc24ede7bfbcbc57bb2a796b84bb52",
"i686-unknown-linux-musl-0.11.9":
"d1f795e59c2e0842352b00e8301ee8fe2fe321fd5af39f419b77534b4f6bd817",
"powerpc64-unknown-linux-gnu-0.11.9":
"e5165cf2db7d74d1d05bc7fee0c36eb92578716a6b86d95d63c3a4577102350e",
"powerpc64le-unknown-linux-gnu-0.11.9":
"022579b3fc348651103a2dddb21f5844dde111d9b539f6179448e076dc9979fe",
"s390x-unknown-linux-gnu-0.11.9":
"f657228facc1a131a4896a028a847bba95ccf82dd6570385cacabb8f186db26d",
"x86_64-apple-darwin-0.11.9":
"88d5c544ac4a420b3c58e0a858a7807c545668a6a3fb9e5403ad73aa0d55b653",
"x86_64-pc-windows-msvc-0.11.9":
"b3c7144d40b3860b104cb88e5c8a95a326b81b3d305b9b6a2ce304761b8508c3",
"x86_64-unknown-linux-gnu-0.11.9":
"276f6b928f61724b255e04e7e3b9e6859f86f4eec5d1b906a72983f3365b6671",
"x86_64-unknown-linux-musl-0.11.9":
"7125dd1baf4f4d635a185c84fa8bef7f572a088e30d160a07f97f2c9fac70c6d",
"aarch64-apple-darwin-0.11.8":
"bc3fc6693437efab1add3f288d6d16fac6926e6888c1e758ec162d5b6fe9099d",
"aarch64-pc-windows-msvc-0.11.8":
"06c2152f269949390bdde0cc9f6d74eb3f4068853a3d772b9ac9baa675b63a06",
"aarch64-unknown-linux-gnu-0.11.8":
"a6010d9393e254c73c81a9942fd1d49c6d1061a84bf76e024627924adfdd9e99",
"aarch64-unknown-linux-musl-0.11.8":
"7a4882654cd8b7c79b0bacd0f9b2062ec08a111a7f2621c69718000a165c93b6",
"arm-unknown-linux-musleabihf-0.11.8":
"e9d8c2e59d97b841273369350c64113708b402372fa6fd933aef70f2d4db9bf6",
"armv7-unknown-linux-gnueabihf-0.11.8":
"1eda8253c82dfc9232508ffb52e1e7d320719c60781a95a0f0e2a4b9ac7d7829",
"armv7-unknown-linux-musleabihf-0.11.8":
"cf4e4ca7426279051c4bdfb846749b8a75fe01892b9b08247dc700ece64af277",
"i686-pc-windows-msvc-0.11.8":
"c9d35f023f94110fd77e0d84240b8c1daf26f923e115556d7ef1e1d3af663e83",
"i686-unknown-linux-gnu-0.11.8":
"3d98524a340aede7ab974fb6f62778254aff1e9a57e565a22a348fdc02753566",
"i686-unknown-linux-musl-0.11.8":
"01f5a7ac05eaa0d548792c309e75fa24d18b6685831743e984d56b0fc4514251",
"powerpc64-unknown-linux-gnu-0.11.8":
"2c45c30ed216f67148ad8e96656efa0f9a4a7591c7def32fdd9db5db86a643fa",
"powerpc64le-unknown-linux-gnu-0.11.8":
"85705683af19f1dfc3c90424dab2525422a1e03e487610a79b725f96e04a4953",
"s390x-unknown-linux-gnu-0.11.8":
"722aa00e479f58f906e7bf697336b9ed3ccf0df939b83e10f2b778a6b136bdc6",
"x86_64-apple-darwin-0.11.8":
"56eaecad5d4e41d2f799bbb705d83238436de4a547e5d04c0591ae3422ae61cc",
"x86_64-pc-windows-msvc-0.11.8":
"2279f17ad7474b9a1493ec2aab404e6f1109272d3221a5d38ee06ceb0e4c6100",
"x86_64-unknown-linux-gnu-0.11.8":
"8edc7a28bb958af4ebfb6a85002c8cd96d88f264dd8c080e065a6e984963ce3c",
"x86_64-unknown-linux-musl-0.11.8":
"d5b331c4dd88a99b3b16babcaa8dec8b22f4004b880243f35f73c276f56684ff",
"aarch64-apple-darwin-0.11.7":
"1c6cc5fb36fb001dfa7331892f9d808bc7ced1d45f0ec54b4caeaa571bc55495",
"aarch64-pc-windows-msvc-0.11.7":
+76 -13
View File
@@ -2,6 +2,8 @@ import * as core from "@actions/core";
import * as tc from "@actions/tool-cache";
import * as path from "node:path";
import { promises as fs } from "node:fs";
import * as semver from "semver";
import * as pep440 from "@renovatebot/pep440";
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
import type { Architecture, Platform } from "../utils/platforms";
import { validateChecksum } from "./checksum/checksum";
@@ -38,16 +40,59 @@ export async function downloadVersion(
if (platform === "pc-windows-msvc") {
extension = ".zip";
}
const downloadUrl = `https://github.com/${OWNER}/${REPO}/releases/download/${version}/${artifact}${extension}`;
core.info(`Downloading ruff from "${downloadUrl}" ...`);
const downloadUrl = constructDownloadUrl(version, platform, arch);
core.debug(`Downloading ruff from "${downloadUrl}" ...`);
const downloadPath = await tc.downloadTool(
downloadUrl,
undefined,
githubToken,
);
core.debug(`Downloaded ruff to "${downloadPath}"`);
await validateChecksum(checkSum, downloadPath, arch, platform, version);
const extractedDir = await extractDownloadedArtifact(
version,
downloadPath,
extension,
platform,
artifact,
);
const cachedToolDir = await tc.cacheDir(
extractedDir,
TOOL_CACHE_NAME,
version,
arch,
);
return { version: version, cachedToolDir };
}
function constructDownloadUrl(
version: string,
platform: Platform,
arch: Architecture,
): string {
const artifactVersionSuffix =
semver.lte(version, "v0.4.10") && semver.gte(version, "v0.1.8")
? `-${version}`
: "";
const artifact = `ruff${artifactVersionSuffix}-${arch}-${platform}`;
let extension = ".tar.gz";
if (platform === "pc-windows-msvc") {
extension = ".zip";
}
const versionPrefix = semver.lte(version, "v0.4.10") ? "v" : "";
return `https://github.com/${OWNER}/${REPO}/releases/download/${versionPrefix}${version}/${artifact}${extension}`;
}
async function extractDownloadedArtifact(
version: string,
downloadPath: string,
extension: string,
platform: Platform,
artifact: string,
): Promise<string> {
let ruffDir: string;
if (platform === "pc-windows-msvc") {
const fullPathWithExtension = `${downloadPath}${extension}`;
@@ -55,16 +100,15 @@ export async function downloadVersion(
ruffDir = await tc.extractZip(fullPathWithExtension);
// On windows extracting the zip does not create an intermediate directory
} else {
const extractedDir = await tc.extractTar(downloadPath);
ruffDir = path.join(extractedDir, artifact);
ruffDir = await tc.extractTar(downloadPath);
if (semver.gte(version, "v0.5.0")) {
// Since v0.5.0 an intermediate directory is created
ruffDir = path.join(ruffDir, artifact);
}
}
const cachedToolDir = await tc.cacheDir(
ruffDir,
TOOL_CACHE_NAME,
version,
arch,
);
return { version: version, cachedToolDir };
const files = await fs.readdir(ruffDir);
core.debug(`Contents of ${ruffDir}: ${files.join(", ")}`);
return ruffDir;
}
export async function resolveVersion(
@@ -81,8 +125,8 @@ export async function resolveVersion(
return version;
}
const availableVersions = await getAvailableVersions(githubToken);
const resolvedVersion = tc.evaluateVersions(availableVersions, version);
if (resolvedVersion === "") {
const resolvedVersion = maxSatisfying(availableVersions, version);
if (resolvedVersion === undefined) {
throw new Error(`No version found for ${version}`);
}
core.debug(`Resolved version: ${resolvedVersion}`);
@@ -152,3 +196,22 @@ async function getLatestRelease(
});
return latestRelease;
}
function maxSatisfying(
versions: string[],
version: string,
): string | undefined {
const maxSemver = tc.evaluateVersions(versions, version);
if (maxSemver !== "") {
core.debug(`Found a version that satisfies the semver range: ${maxSemver}`);
return maxSemver;
}
const maxPep440 = pep440.maxSatisfying(versions, version);
if (maxPep440 !== null) {
core.debug(
`Found a version that satisfies the pep440 specifier: ${maxPep440}`,
);
return maxPep440;
}
return undefined;
}
+6
View File
@@ -23,6 +23,7 @@ import {
} from "./utils/inputs";
import { getRuffVersionFromRequirementsFile } from "./utils/pyproject";
import * as fs from "node:fs";
import * as semver from "semver";
async function run(): Promise<void> {
const platform = getPlatform();
@@ -62,6 +63,11 @@ async function setupRuff(
githubToken: string,
): Promise<{ ruffDir: string; version: string }> {
const resolvedVersion = await determineVersion();
if (semver.lt(resolvedVersion, "v0.0.247")) {
throw Error(
"This action does not support ruff versions older than 0.0.247",
);
}
const toolCacheResult = tryGetFromToolCache(arch, resolvedVersion);
if (toolCacheResult.installedPath) {
core.info(`Found ruffDir in tool-cache for ${toolCacheResult.version}`);
+6 -1
View File
@@ -31,6 +31,7 @@ interface Pyproject {
"dependency-groups"?: Record<string, Array<string | object>>;
tool?: {
poetry?: {
dependencies?: Record<string, string | object>;
group?: Record<string, { dependencies: Record<string, string | object> }>;
};
};
@@ -59,7 +60,11 @@ function getRuffVersionFromPoetryGroups(
): string | undefined {
// Special handling for Poetry until it supports PEP 735
// See: <https://github.com/python-poetry/poetry/issues/9751>
const poetryGroups = Object.values(pyproject?.tool?.poetry?.group || {});
const poetry = pyproject?.tool?.poetry || {};
const poetryGroups = Object.values(poetry.group || {});
if (poetry.dependencies) {
poetryGroups.unshift({ dependencies: poetry.dependencies });
}
return poetryGroups
.flatMap((group) => Object.entries(group.dependencies))
.map(([name, spec]) => {