File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 34
34
. ./scripts/fuzz_targets
35
35
uv run generate_matrix | tee $GITHUB_OUTPUT
36
36
37
+ GenerateCorpus :
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - name : Checkout
41
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
42
+ with :
43
+ repository : curl/curl-fuzzer
44
+ - name : Install uv
45
+ uses : astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6
46
+ - name : Create corpus
47
+ run : |
48
+ uv run yaml_to_corpus --corpus-dir corpora/ yaml/
49
+ - name : Upload corpus
50
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
51
+ with :
52
+ name : corpus
53
+ path : corpora/
54
+
37
55
BuildFuzzers :
38
56
runs-on : ubuntu-latest
39
57
steps :
57
75
path : fuzz.tar
58
76
59
77
RunFuzzers :
60
- needs : [ BuildFuzzers, DetermineMatrix ]
78
+ needs : [ BuildFuzzers, DetermineMatrix, GenerateCorpus ]
61
79
runs-on : ubuntu-latest
62
80
strategy :
63
81
matrix : ${{ fromJSON(needs.DetermineMatrix.outputs.matrix) }}
69
87
run : tar xvf fuzz.tar build-out/${{ matrix.fuzzer }} build-out/${{ matrix.fuzzer }}_seed_corpus.zip
70
88
- name : Display extracted files
71
89
run : ls -laR build-out/
90
+ # Download the corpora directory to the root of the repository
91
+ - name : Download corpus
92
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
93
+ with :
94
+ name : corpus
95
+ - name : Show corpus
96
+ run : ls -laR corpora/
72
97
- name : Run Fuzzer ${{ matrix.fuzzer }}
73
98
uses : google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
74
99
with :
You can’t perform that action at this time.
0 commit comments