You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`version`| The version of Ruff to install. See [Install specific versions](#install-specific-versions)|`latest`|
32
-
|`version-file`| The file to read the version from. See [Install a version from a specified version file](#install-a-version-from-a-specified-version-file)| None |
33
-
|`args`| The arguments to pass to the `ruff` command. See [Configuring Ruff]|`check`|
34
-
|`src`| The directory or single files to run `ruff` on. |[github.workspace]|
35
-
|`checksum`| The sha256 checksum of the downloaded executable. | None |
36
-
|`github-token`| The GitHub token to use for authentication. |`GITHUB_TOKEN`|
|`version`| The version of Ruff to install. See [Install specific versions](#install-specific-versions)|`latest`|
33
+
|`version-file`| The file to read the version from. See [Install a version from a specified version file](#install-a-version-from-a-specified-version-file)| None |
34
+
|`manifest-file`| URL to a custom Ruff manifest in the `astral-sh/versions` format. | None |
35
+
|`args`| The arguments to pass to the `ruff` command. See [Configuring Ruff]|`check`|
36
+
|`src`| The directory or single files to run `ruff` on. |[github.workspace]|
37
+
|`checksum`| The sha256 checksum of the downloaded artifact. | None |
38
+
|`github-token`| The GitHub token to use when downloading Ruff release artifacts from GitHub. |`GITHUB_TOKEN`|
39
+
40
+
By default, Ruff version metadata is resolved from the
You can override the default `astral-sh/versions` manifest with `manifest-file`.
166
+
This affects both version resolution and artifact selection.
167
+
168
+
```yaml
169
+
- name: Install Ruff from a custom manifest
170
+
uses: astral-sh/ruff-action@v3
171
+
with:
172
+
version: "latest"
173
+
manifest-file: "https://example.com/ruff.ndjson"
174
+
```
175
+
158
176
### Validate checksum
159
177
160
178
You can specify a checksum to validate the downloaded executable. Checksums up to the default version
@@ -171,9 +189,11 @@ are automatically verified by this action. The sha256 hashes can be found on the
171
189
172
190
### GitHub authentication token
173
191
174
-
This action uses the GitHub API to fetch the ruff release artifacts. To avoid hitting the GitHub API
175
-
rate limit too quickly, an authentication token can be provided via the `github-token` input. By
176
-
default, the `GITHUB_TOKEN` secret is used, which is automatically provided by GitHub Actions.
192
+
By default, this action resolves available uv versions from
193
+
[`astral-sh/versions`](https://github.com/astral-sh/versions) and downloads release artifacts from `https://releases.astral.sh`. If this fails this action falls back to downloading from the GitHub releases page of the ruff repository.
194
+
195
+
You can provide a token via `github-token` to authenticate those downloads. By default, the
196
+
`GITHUB_TOKEN`secret is used, which is automatically provided by GitHub Actions.
177
197
178
198
If the default
179
199
[permissions for the GitHub token](https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#permissions-for-the-github_token)
0 commit comments