xref: /openssl/.github/workflows/main.yml (revision 7ed6de99)
1# Copyright 2021-2024 The OpenSSL Project Authors. All Rights Reserved.
2#
3# Licensed under the Apache License 2.0 (the "License").  You may not use
4# this file except in compliance with the License.  You can obtain a copy
5# in the file LICENSE in the source distribution or at
6# https://www.openssl.org/source/license.html
7
8name: CIFuzz
9on: [pull_request, push]
10permissions:
11  contents: read
12
13jobs:
14  Fuzzing:
15    runs-on: ubuntu-latest
16    steps:
17    - name: Build Fuzzers
18      uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
19      with:
20        oss-fuzz-project-name: 'openssl'
21        dry-run: false
22    - name: Run Fuzzers
23      uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
24      with:
25        oss-fuzz-project-name: 'openssl'
26        fuzz-seconds: 600
27        dry-run: false
28    - name: Upload Crash
29      uses: actions/upload-artifact@v3
30      if: failure()
31      with:
32        name: artifacts
33        path: ./out/artifacts
34