Skip to content

🔒 fix: Upgrade starlette #161

🔒 fix: Upgrade starlette

🔒 fix: Upgrade starlette #161

Workflow file for this run

name: Atheris Fuzzing
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
# Run fuzzing every Monday at 2 AM
- cron: '0 2 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
fuzz:
name: Run Atheris Fuzz Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fuzz-target:
- fuzz_validation.py
- fuzz_helpers.py
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --require-hashes -r .github/requirements-pip.txt
pip install --require-hashes -r .github/requirements-fuzz.txt
# Install only minimal dependencies needed for fuzz targets
pip install -r requirements.txt || echo "Some dependencies may not install in CI - continuing"
- name: Run fuzzing - ${{ matrix.fuzz-target }}
run: |
cd .github/fuzz
# Run each fuzzer for 60 seconds
timeout 60s python ${{ matrix.fuzz-target }} -atheris_runs=100000 || exit_code=$?
# Exit code 124 means timeout (expected), 0 means success, anything else is a crash
if [ $exit_code -ne 0 ] && [ $exit_code -ne 124 ]; then
echo "Fuzzer crashed with exit code $exit_code"
exit 1
fi
echo "Fuzzing completed successfully"
continue-on-error: false
- name: Upload crash artifacts
if: failure()
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: fuzz-crashes-${{ matrix.fuzz-target }}
path: |
.github/fuzz/crash-*
.github/fuzz/leak-*
.github/fuzz/timeout-*
if-no-files-found: ignore