Merge pull request #201 from Mozez155/fix/172-hospital-registry-typed… #50
This file contains hidden or 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
| # Fuzz patient-registry input validators (CID, DID, score) for 60s per target on each PR. | |
| # Labels: intermediate testing security | |
| name: Fuzz validation | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main, develop] | |
| concurrency: | |
| group: fuzz-validation-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| fuzz-patient-registry: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| defaults: | |
| run: | |
| # cargo-fuzz expects the fuzz crate manifest under this directory. | |
| working-directory: contracts/patient-registry/fuzz | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - name: Install cargo-fuzz | |
| run: cargo install cargo-fuzz --locked | |
| - name: Fuzz validate_cid (60s) | |
| run: cargo fuzz run validate_cid corpus/validate_cid -- -max_total_time=60 -print_final_stats=1 | |
| - name: Fuzz validate_did (60s) | |
| run: cargo fuzz run validate_did corpus/validate_did -- -max_total_time=60 -print_final_stats=1 | |
| - name: Fuzz validate_score (60s) | |
| run: cargo fuzz run validate_score corpus/validate_score -- -max_total_time=60 -print_final_stats=1 |