chore(deps): update actions/upload-artifact digest to 604373d #172
Workflow file for this run
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
name: CI | |
'on': | |
push: | |
branches: | |
- master | |
- main | |
- '*/ci' | |
pull_request: | |
branches: | |
- master | |
- main | |
# This makes the workflow callable by curl/curl | |
workflow_call: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
BuildFuzzers: | |
runs-on: ubuntu-latest | |
steps: | |
# Use the CIFuzz job to test the repository. | |
- name: Build Fuzzers | |
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | |
with: | |
oss-fuzz-project-name: 'curl' | |
dry-run: false | |
keep-unaffected-fuzz-targets: true | |
# Archive the fuzzer output (which maintains permissions) | |
- name: Create fuzz tar | |
run: tar cvf fuzz.tar build-out/ | |
# Upload the fuzzer output | |
- name: Archive fuzz tar | |
uses: actions/upload-artifact@84480863f228bb9747b473957fcc9e309aa96097 # v4 | |
with: | |
name: fuzz_tar | |
path: fuzz.tar | |
RunFuzzers: | |
needs: BuildFuzzers | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
fuzzer: | |
- curl_fuzzer_bufq | |
- curl_fuzzer_dict | |
- curl_fuzzer_file | |
- curl_fuzzer_ftp | |
- curl_fuzzer_gopher | |
- curl_fuzzer_http | |
- curl_fuzzer_https | |
- curl_fuzzer_imap | |
- curl_fuzzer_mqtt | |
- curl_fuzzer_pop3 | |
- curl_fuzzer_rtsp | |
- curl_fuzzer_smb | |
- curl_fuzzer_smtp | |
- curl_fuzzer_tftp | |
- curl_fuzzer_ws | |
- curl_fuzzer | |
- fuzz_url | |
steps: | |
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4 | |
with: | |
name: fuzz_tar | |
- name: Unpack fuzzer ${{ matrix.fuzzer }} | |
run: tar xvf fuzz.tar build-out/${{ matrix.fuzzer }} build-out/${{ matrix.fuzzer }}_seed_corpus.zip | |
- name: Display extracted files | |
run: ls -laR build-out/ | |
- name: Run Fuzzer ${{ matrix.fuzzer }} | |
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | |
with: | |
oss-fuzz-project-name: 'curl' | |
fuzz-seconds: 120 | |
dry-run: false | |
- name: Upload Crash | |
uses: actions/upload-artifact@84480863f228bb9747b473957fcc9e309aa96097 # v4 | |
if: failure() | |
with: | |
name: artifacts | |
path: ./out/artifacts |