Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 1 | |
| 2 | # |
| 3 | # scan results: https://scan.coverity.com/projects/haproxy |
| 4 | # |
| 5 | |
| 6 | name: Coverity |
| 7 | |
| 8 | on: |
| 9 | schedule: |
| 10 | - cron: "0 0 * * *" |
| 11 | |
Tim Duesterhus | 89c9d0a | 2021-10-16 18:10:26 +0200 | [diff] [blame] | 12 | permissions: |
| 13 | contents: read |
| 14 | |
Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 15 | jobs: |
| 16 | scan: |
| 17 | runs-on: ubuntu-latest |
| 18 | if: ${{ github.repository_owner == 'haproxy' }} |
| 19 | env: |
| 20 | COVERITY_SCAN_PROJECT_NAME: 'Haproxy' |
| 21 | COVERITY_SCAN_BRANCH_PATTERN: '*' |
| 22 | COVERITY_SCAN_NOTIFICATION_EMAIL: 'chipitsine@gmail.com' |
Willy Tarreau | d8ac3f5 | 2022-03-04 10:12:40 +0100 | [diff] [blame] | 23 | # We cannot pass the DEBUG at once here because Coverity splits |
| 24 | # parameters at whitespaces, without taking quoting into account. |
| 25 | COVERITY_SCAN_BUILD_COMMAND: "make CC=clang TARGET=linux-glibc USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_QUIC=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=addons/wurfl/dummy WURFL_LIB=addons/wurfl/dummy USE_DEVICEATLAS=1 DEVICEATLAS_SRC=addons/deviceatlas/dummy USE_51DEGREES=1 51DEGREES_SRC=addons/51degrees/dummy/pattern ADDLIB=\"-Wl,-rpath,$HOME/opt/lib/\" SSL_LIB=${HOME}/opt/lib SSL_INC=${HOME}/opt/include DEBUG+=-DDEBUG_STRICT=1 DEBUG+=-DDEBUG_USE_ABORT=1" |
Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 26 | steps: |
Tim Duesterhus | 5f4ddb5 | 2022-04-09 22:08:41 +0200 | [diff] [blame] | 27 | - uses: actions/checkout@v3 |
Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 28 | - name: Install apt dependencies |
| 29 | run: | |
| 30 | sudo apt-get update |
| 31 | sudo apt-get install -y \ |
| 32 | liblua5.3-dev \ |
| 33 | libsystemd-dev |
Ilya Shipitsin | 6fed59c | 2022-02-02 10:24:58 +0500 | [diff] [blame] | 34 | - name: Install QUICTLS |
| 35 | run: | |
| 36 | QUICTLS=yes scripts/build-ssl.sh |
Tim Duesterhus | 66d28e7 | 2021-01-28 18:58:53 +0100 | [diff] [blame] | 37 | - name: Build WURFL |
Willy Tarreau | 57610c6 | 2021-04-02 16:39:44 +0200 | [diff] [blame] | 38 | run: make -C addons/wurfl/dummy |
Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 39 | - name: Run Coverity Scan |
| 40 | env: |
| 41 | COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |
| 42 | run: | |
Ilya Shipitsin | 64b6f36 | 2020-12-25 23:36:52 +0500 | [diff] [blame] | 43 | curl -fsSL "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true |