-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Fuzzing: * add coverage generation * fix block numeration error * fix AFL build error * add an EVM run * toml sort * fix unexistent call
- Loading branch information
Showing
9 changed files
with
117 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: EVM Template Fuzzer (Weekly run) | ||
|
||
on: | ||
schedule: | ||
# Runs at 00:00 UTC every Sunday | ||
- cron: '0 0 * * 0' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
generic-template-fuzzer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
|
||
- name: Add target | ||
run: rustup target add wasm32-unknown-unknown | ||
|
||
- name: Add dependencies | ||
run: cargo install ziggy cargo-afl honggfuzz grcov | ||
|
||
- name: Build AFL config | ||
run: cargo afl config --build | ||
working-directory: evm-template/template-fuzzer | ||
|
||
- name: Run Ziggy Fuzzing | ||
run: | | ||
AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 timeout 5h cargo ziggy fuzz -t 20 || true | ||
working-directory: evm-template/template-fuzzer | ||
|
||
- name: Generate Ziggy Fuzzing Coverage Result | ||
run: | | ||
CARGO_HOME=.cargo cargo ziggy cover | ||
working-directory: evm-template/template-fuzzer | ||
|
||
- name: Zip Artifacts | ||
run: zip artifacts.zip evm-template/template-fuzzer/output/* -r | ||
|
||
- name: Save Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: fuzzing-artifacts | ||
path: artifacts.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,7 @@ docs/build | |
**/zombienet-linux-x64 | ||
**/bin-* | ||
|
||
coverage | ||
coverage | ||
|
||
# fuzzing output | ||
**/template-fuzzer/output |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters