2023-05-31 22:21:12 +03:00
|
|
|
name: Fuzzing testing
|
|
|
|
|
|
|
|
on:
|
2024-02-09 10:12:54 +03:00
|
|
|
workflow_dispatch:
|
|
|
|
branches: [ master, stable* ]
|
2024-04-19 09:56:27 +03:00
|
|
|
pull_request:
|
2024-02-09 10:12:54 +03:00
|
|
|
branches: [ master, stable* ]
|
2024-04-19 19:38:00 +03:00
|
|
|
schedule:
|
|
|
|
- cron: "0 3 21 * *"
|
2023-05-31 22:21:12 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
fuzzing:
|
|
|
|
if: github.repository == 'FreeRDP/FreeRDP'
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-04-19 19:38:00 +03:00
|
|
|
sanitizer: [address, undefined]
|
2023-05-31 22:21:12 +03:00
|
|
|
|
|
|
|
steps:
|
2024-02-10 12:51:53 +03:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
2023-05-31 22:21:12 +03:00
|
|
|
- name: Build fuzzers (${{ matrix.sanitizer }})
|
|
|
|
id: build
|
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'freerdp'
|
|
|
|
dry-run: false
|
|
|
|
sanitizer: ${{ matrix.sanitizer }}
|
|
|
|
- name: Run fuzzers (${{ matrix.sanitizer }})
|
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'freerdp'
|
|
|
|
fuzz-seconds: 600
|
|
|
|
dry-run: false
|
|
|
|
sanitizer: ${{ matrix.sanitizer }}
|
|
|
|
- name: Upload crash
|
2024-11-06 16:23:45 +03:00
|
|
|
uses: actions/upload-artifact@v4.3.6
|
2023-05-31 22:21:12 +03:00
|
|
|
if: failure() && steps.build.outcome == 'success'
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.sanitizer }}-artifacts
|
|
|
|
retention-days: 21
|
|
|
|
path: ./out/artifacts
|