Add ClusterFuzzLite workflow #18

Open
DavidKorczynski wants to merge 2 commits from DavidKorczynski/cflite into master
DavidKorczynski commented 2024-05-10 18:25:49 -05:00 (Migrated from github.com)

This adds fuzzing by way of ClusterFuzzLite, which is a GitHub action that will perform a short amount of fuzzing for new PRs. The goal is to use fuzzing to catch bugs that may be introduced by new PRs.

If you'd like to test this the way ClusterFuzzLite runs it (by way of OSS-Fuzz) you can use the steps:

git clone https://github.com/google/oss-fuzz
git clone https://github.com/DavidKorczynski/tiny-json
cd tiny-json
git checkout cflite

# Build the fuzzers in .clusterfuzzlite
python3 ../oss-fuzz/infra/helper.py build_fuzzers --external $PWD

# Run the fuzzer for 10 seconds
python3 ../oss-fuzz/infra/helper.py run_fuzzer --external $PWD fuzzer -- -max_total_time=10
This adds fuzzing by way of [ClusterFuzzLite](https://google.github.io/clusterfuzzlite/), which is a GitHub action that will perform a short amount of fuzzing for new PRs. The goal is to use fuzzing to catch bugs that may be introduced by new PRs. If you'd like to test this the way ClusterFuzzLite runs it (by way of OSS-Fuzz) you can use the steps: ```sh git clone https://github.com/google/oss-fuzz git clone https://github.com/DavidKorczynski/tiny-json cd tiny-json git checkout cflite # Build the fuzzers in .clusterfuzzlite python3 ../oss-fuzz/infra/helper.py build_fuzzers --external $PWD # Run the fuzzer for 10 seconds python3 ../oss-fuzz/infra/helper.py run_fuzzer --external $PWD fuzzer -- -max_total_time=10 ```
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'DavidKorczynski/cflite:DavidKorczynski/cflite'
git switch 'DavidKorczynski/cflite'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'master'
git merge --no-ff 'DavidKorczynski/cflite'
git switch 'DavidKorczynski/cflite'
git rebase 'master'
git switch 'master'
git merge --ff-only 'DavidKorczynski/cflite'
git switch 'DavidKorczynski/cflite'
git rebase 'master'
git switch 'master'
git merge --no-ff 'DavidKorczynski/cflite'
git switch 'master'
git merge --squash 'DavidKorczynski/cflite'
git switch 'master'
git merge --ff-only 'DavidKorczynski/cflite'
git switch 'master'
git merge 'DavidKorczynski/cflite'
git push origin 'master'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-rafagafe/tiny-json!18
No description provided.