34 Commits
Author SHA1 Message Date
zaniebotandZanie Blue 485205fd46 [ruff] Remove stale PPC64 release target (#29221)
Release signing fails while collecting `powerpc64-unknown-linux-gnu`
wheels because the target remains in `dist-workspace.toml` after #22766
removed its builds. Remove the stale entry so the signing inventory
matches the release build matrix.

Co-authored-by: Zanie Blue <contact@zanie.dev>
2026-10-08 10:06:20 -05:00
Ee Durbin dba0f30615 authorize ruff-pre-commit dispatch via OIDC (#28867)
deprecate PAT for this dispatch in favor of OIDC
2026-09-24 10:03:06 -04:00
Ee Durbin f7d2671337 publish to astral-sh/versions via OIDC (#28835)
adopt OIDC for release publication to the astral-sh/versions using OIDC
rather than a long lived PAT. similar to docs publishing

Policies merged/applied in
https://github.com/astral-sh/github-policies/pull/78
Versions STS merged in https://github.com/astral-sh/versions/pull/194
`RELEASES_STS_API_URL` configured in `release` environment.
2026-09-23 12:38:57 -04:00
Ee Durbin 0493204d0a use oidc issued token for docs publication (#28830)
adopt astral-releases-bot authorized publication of documentation. this
has previously been rolled out to uv and python-build-standalone and
allows us to retire the PAT for astral-docs-bot in favor of OIDC auth

docs STS has been authorized via
https://github.com/astral-sh/docs/pull/517
`RELEASES_STS_API_URL` has been appropriately set in release environment
2026-09-23 09:49:03 -04:00
zaniebotandzaniebot 3ee130d1da Grant checkout workflows repository read access (#28682)
CI in a private copy of the repository fails at `actions/checkout`
because several workflows explicitly set `permissions: {}`. Grant
`contents: read` to the affected CI, build, and publishing workflows.
The reusable release jobs receive the same permission from their
callers, with the grants recorded in `dist-workspace.toml` so
regeneration retains them.

Co-authored-by: zaniebot <242828183+zaniebot@users.noreply.github.com>
2026-09-17 21:21:12 -04:00
Charlie Marsh 3436ac3e6a Pin Depot runners to Ubuntu 24.04 (#27656)
## Summary

Previously, our Depot-backed CI and release jobs used floating Ubuntu
runner labels. We now pin the four-core release runners and eight-core
CI runners to Ubuntu 24.04, update actionlint accordingly, and keep the
cargo-dist runner configuration aligned with the generated release
workflow.

The existing release approval gate and checksum-verified cargo-dist
installation remain unchanged.
2026-08-11 12:21:35 -04:00
Charlie Marsh dff016b7a4 Publish Ruff crates to crates.io (#26271)
## Summary

Publish Ruff's production Rust crates to crates.io as part of the
existing release workflow. This follows uv's setup: workspace
dependencies carry registry-compatible version pins, internal crates
receive generated READMEs and an explicit versioning policy, CI dry-runs
the full workspace publish, and release jobs publish missing crate
versions idempotently through crates.io trusted publishing.

The publishing set contains 32 packages: Ruff's CLI, WASM package,
server, linter, formatter, parser, and the internal Ruff component
crates required by them. It also includes `ty_module_resolver`,
`ty_site_packages`, and `ty_static`, because those three crates are part
of Ruff's normal dependency closure.

The publishing set deliberately excludes:

- Test-only crates: `mdtest`, `ruff_mdtest`,
`ruff_python_ast_integration_tests`, and
`ruff_python_trivia_integration_tests`.
- Benchmark and development crates: `ruff_benchmark` and `ruff_dev`.
- All remaining `ty_*` crates.

These packages retain `publish = false`, so bootstrap, version bumping,
README generation, CI dry-runs, and release publishing skip them through
Cargo metadata instead of a separate hard-coded allowlist.

The crates.io job is intentionally independent of release announcement,
so a crates.io outage cannot block the existing binary, PyPI, npm, or
GitHub release outputs. A bootstrap script reserves new crate names,
configures the release workflow as each crate's trusted publisher,
enables trusted-publishing-only releases, and records configured crates
for idempotent reruns.

The full workspace publish dry-run packages and verifies all 32 selected
crates.

Closes https://github.com/astral-sh/ruff/issues/43.
2026-06-23 12:49:23 -04:00
Zanie Blue 8e04486156 Fetch the cargo-dist binary directly instead of using the installer (#24258)
See https://github.com/astral-sh/uv/pull/18731
2026-03-30 18:07:24 +00:00
renovate[bot]andMicha Reiser 9b58d66f36 Update actions/download-artifact digest to 484a0b5 (#23974)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| actions/download-artifact | action | digest | `70fc10c` → `484a0b5` |

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My42Ni40IiwidXBkYXRlZEluVmVyIjoiNDMuNjYuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2026-03-16 09:34:19 +00:00
Zsolt Dollenstein 9b372a5ce0 installers: Download releases from Astral's mirror first (#23617) 2026-03-06 11:11:04 +00:00
renovate[bot]andAlex Waygood 080644e96c Update Artifact GitHub Actions dependencies (#23676)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| actions/download-artifact | action | digest | `37930b1` → `70fc10c` |
| actions/upload-artifact | action | digest | `b7c566a` → `bbbca2d` |

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My40My4yIiwidXBkYXRlZEluVmVyIjoiNDMuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2026-03-02 12:16:21 +00:00
renovate[bot]andAlex Waygood af3c21bb92 Update actions/attest-build-provenance to 4.1.0 (#23654)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2026-03-02 12:07:49 +00:00
Zsolt Dollenstein 2296c36612 Publish releases to Astral mirror (#23616) 2026-03-02 04:46:01 -05:00
Zsolt Dollenstein 76906cc638 Bump cargo dist to 0.31 (#23614) 2026-02-27 13:46:10 -05:00
Shaan Majid 7bb9f80596 Add attestations for release artifacts and Docker images (#23111)
## Summary

Adds GitHub artifact attestations (SLSA provenance) for release
artifacts and Docker images.

Users will be able to verify artifacts with:
```bash
# Release artifacts
gh attestation verify ruff-x86_64-unknown-linux-gnu.tar.gz --repo astral-sh/ruff

# Docker images
gh attestation verify oci://ghcr.io/astral-sh/ruff:latest --repo astral-sh/ruff
```

## Test Plan

Tested end-to-end releases and attestation verification on my fork.
(Note, some finagling was necessary to successfully publish without a
dedicated depot runner, see a5d98386bb8b14d685164f6464908e84ba4ce91b)

- Workflow run:
https://github.com/shaanmajid/ruff/actions/runs/21732754488
- Test release: https://github.com/shaanmajid/ruff/releases/tag/0.15.0

Verify release artifacts:
```bash
gh release download 0.15.0 --repo shaanmajid/ruff --pattern "ruff-x86_64-unknown-linux-gnu.tar.gz" --dir /tmp
gh attestation verify /tmp/ruff-x86_64-unknown-linux-gnu.tar.gz --repo shaanmajid/ruff
```

Verify Docker images:
```bash
gh attestation verify oci://ghcr.io/shaanmajid/ruff:0.15.0 --repo shaanmajid/ruff
gh attestation verify oci://ghcr.io/shaanmajid/ruff:alpine --repo shaanmajid/ruff
gh attestation verify oci://ghcr.io/shaanmajid/ruff:debian --repo shaanmajid/ruff
```

## Notes
- `actions/attest-build-provenance` was preexisting in
`dist-workspace.toml` but was unused, so the upgrade across major
versions is safe
2026-02-16 10:46:21 -05:00
Zanie Blue 2d6ca092fa Add publish of versions to astral-sh/versions (#23061)
Copies https://github.com/astral-sh/uv/pull/17648
2026-02-05 12:16:40 -06:00
renovate[bot]andMicha Reiser 78ef241200 Update actions/checkout digest to 0c366fd (#22513)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2026-01-12 18:36:50 +01:00
Leo HayashiandHayashi Reo baaf6966f6 [ruff] Split WASM build and publish into separate workflows (#12387) (#22476)
Co-authored-by: Hayashi Reo <reo@wantedly.com>
2026-01-09 17:41:13 +01:00
renovate[bot]andMicha Reiser 3d35dbd334 Update actions/upload-artifact digest to b7c566a (#22250)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-12-30 09:07:58 +00:00
renovate[bot]andMicha Reiser ab542698ad Update actions/download-artifact digest to 37930b1 (#22249)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-12-29 17:20:38 +00:00
renovate[bot]andMicha Reiser 9838f81baf Update actions/checkout digest to 8e8c483 (#21982)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-12-15 06:52:52 +00:00
Micha Reiser f317a71682 Use release commit for actions/checkout (#21610) 2025-11-24 09:24:23 +01:00
renovate[bot] 3f4875313f Update actions/checkout digest to c2d88d3 (#21601)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| actions/checkout | action | digest | `ff7abcd` -> `c2d88d3` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xNi4xIiwidXBkYXRlZEluVmVyIjoiNDIuMTYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-24 05:27:54 +00:00
William Woodruff b6add3ee6d chore: bump dist, remove old commenting workflows (#21302) 2025-11-07 17:09:29 -05:00
renovate[bot]andMicha Reiser fdb8ea487c Update upload and download artifacts github actions (#21083)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-10-27 08:29:32 +01:00
William Woodruff 7ba176d395 ci: adjust zizmor config, bump dist (#20999)
## Summary

Also bumps `cargo dist` to 0.30, and moves us
back to the upstream copy of `dist` now that
the latest version has integrated our fork's
patches.

## Test Plan

See what happens in CI 🙂

---------

Signed-off-by: William Woodruff <william@astral.sh>
2025-10-22 17:48:17 -04:00
William Woodruff 1fa64a24b8 Revert "[ruff]: Build loongarch64 binaries in CI (#20361)" (#20372) 2025-09-12 17:21:04 -04:00
SkyBird ec863bcde7 [ruff]: Build loongarch64 binaries in CI (#20361)
<!--
Thank you for contributing to Ruff/ty! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title? (Please prefix
with `[ty]` for ty pull
  requests.)
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

This PR adds support for building loongarch64 binaries in CI. As such
support has been merged in uv (astral-sh/uv#15387) it's time to consider
adding it to ruff.

Please note that as Ubuntu is not yet available for loongarch64, I have
elected to use a Debian Trixie container maintained by community
members. In addition, as Debian's pip does not allow installing modules
system-wide, I have modified the workflow to install additional modules
in a virtual environment.

Since the workflow is shared between all targets, the only way to handle
this difference (between Debian and Ubuntu) is just to install pip in a
venv for all targets. If there is a better (and less intrusive) way to
work around this, please let me know.

## Test Plan

Tests are included in CI and the loongarch64 artifacts built in [this
workflow](https://github.com/SkyBird233/ruff/actions/runs/17640270032/job/50125471548)
has been smoke tested.
2025-09-12 13:49:13 -04:00
renovate[bot]andDhruv Manilawala b57cc5be33 Update actions/checkout digest to ff7abcd (#20061)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| actions/checkout | action | digest | `08c6903` -> `ff7abcd` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/ruff).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi43IiwidXBkYXRlZEluVmVyIjoiNDEuODIuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2025-08-25 11:04:07 +05:30
renovate[bot]andMicha Reiser 083bb85d9d Update actions/checkout to v5.0.0 (#19952)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-08-18 07:31:07 +00:00
ffgan 9aaa82d037 Feature/build riscv64 bin (#19819) 2025-08-14 16:11:14 +02:00
renovate[bot]andMicha Reiser 5b6d0d17f1 Update actions/download-artifact digest to de96f46 (#19852)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-08-11 06:34:09 +00:00
renovate[bot] b4b53183b7 Update actions/checkout digest to 09d2aca (#18576) 2025-06-09 08:08:02 +02:00
Aria Desires 784daae497 migrate to dist-workspace.toml, use new workspace.packages config (#17864) 2025-05-05 14:07:46 -04:00