mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-22 01:58:04 +08:00
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/download-artifact](https://redirect.github.com/actions/download-artifact) | action | patch | `v8.0.1` → `v8.0.2` | | [actions/upload-artifact](https://redirect.github.com/actions/upload-artifact) | action | patch | `v7.0.1` → `v7.0.2` | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/10578) for more information. --- ### Release Notes <details> <summary>actions/download-artifact</summary> ### [`v8.0.2`](https://redirect.github.com/actions/download-artifact/releases/tag/v8.0.2) [Compare Source](https://redirect.github.com/actions/download-artifact/compare/v8.0.1...v8.0.2) #### What's Changed - Update the readme by [@​danwkennedy](https://redirect.github.com/danwkennedy) in [#​473](https://redirect.github.com/actions/download-artifact/pull/473) - Improves artifact download retries when the service returns HTTP 429 (rate limiting), including honoring valid Retry-After headers. - Update [@​actions/artifact](https://redirect.github.com/actions/artifact) to 6.3.1 by [@​tunc-d](https://redirect.github.com/tunc-d) in [#​492](https://redirect.github.com/actions/download-artifact/pull/492) - Prepare download-artifact v8.0.2 by [@​tunc-d](https://redirect.github.com/tunc-d) in [#​493](https://redirect.github.com/actions/download-artifact/pull/493) #### New Contributors - [@​tunc-d](https://redirect.github.com/tunc-d) made their first contribution in [#​492](https://redirect.github.com/actions/download-artifact/pull/492) **Full Changelog**: <https://github.com/actions/download-artifact/compare/v8.0.1...v8.0.2> </details> <details> <summary>actions/upload-artifact</summary> ### [`v7.0.2`](https://redirect.github.com/actions/upload-artifact/releases/tag/v7.0.2) [Compare Source](https://redirect.github.com/actions/upload-artifact/compare/v7.0.1...v7.0.2) #### What's Changed - Improves artifact download retries when the service returns HTTP 429 (rate limiting), including honoring valid Retry-After headers. - Updates [@​actions/artifact](https://redirect.github.com/actions/artifact) to v6.3.1. #### New Contributors - [@​tunc-d](https://redirect.github.com/tunc-d) made their first contribution in [#​821](https://redirect.github.com/actions/upload-artifact/pull/821) **Full Changelog**: <https://github.com/actions/upload-artifact/compare/v7.0.1...v7.0.2> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - "before 4am on Wednesday" - 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
55 lines
2.0 KiB
YAML
55 lines
2.0 KiB
YAML
name: Prepare a fuzz corpus
|
|
description: Reuse a fixed-seed Python corpus and publish it from main when stale
|
|
inputs:
|
|
python-version:
|
|
description: Python version used by the fuzzer
|
|
required: true
|
|
seeds:
|
|
description: Inclusive seed range in the corpus
|
|
required: true
|
|
outputs:
|
|
path:
|
|
description: Directory containing the sources, if available
|
|
value: ${{ steps.download.outputs.download-path || steps.generate.outputs.path }}
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Find the fuzz corpus
|
|
id: lookup
|
|
shell: bash
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
UV_PYTHON: ${{ inputs.python-version }}
|
|
FUZZ_SEEDS: ${{ inputs.seeds }}
|
|
run: |
|
|
uv run --locked "$GITHUB_ACTION_PATH/prepare_corpus.py" "$FUZZ_SEEDS" >> "$GITHUB_OUTPUT"
|
|
- name: Download the fuzz corpus
|
|
id: download
|
|
if: ${{ steps.lookup.outputs.run-id }}
|
|
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
with:
|
|
github-token: ${{ github.token }}
|
|
run-id: ${{ steps.lookup.outputs.run-id }}
|
|
name: ${{ steps.lookup.outputs.name }}
|
|
path: ${{ runner.temp }}/fuzz-corpus
|
|
- name: Generate a missing corpus on main
|
|
id: generate
|
|
if: ${{ !steps.lookup.outputs.run-id && github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule') }}
|
|
shell: bash
|
|
env:
|
|
UV_PYTHON: ${{ inputs.python-version }}
|
|
FUZZ_SEEDS: ${{ inputs.seeds }}
|
|
run: |
|
|
uv run --project="$GITHUB_ACTION_PATH" --locked --no-dev \
|
|
generate-fuzz-corpus "$FUZZ_SEEDS" "$RUNNER_TEMP/fuzz-corpus"
|
|
echo "path=$RUNNER_TEMP/fuzz-corpus" >> "$GITHUB_OUTPUT"
|
|
- name: Upload the fuzz corpus
|
|
if: ${{ steps.generate.outputs.path }}
|
|
continue-on-error: true
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: ${{ steps.lookup.outputs.name }}
|
|
path: ${{ steps.generate.outputs.path }}
|
|
if-no-files-found: error
|
|
overwrite: true
|