2020-12-25 18:36:52 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# scan results: https://scan.coverity.com/projects/haproxy
|
|
|
|
#
|
|
|
|
|
|
|
|
name: Coverity
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
2021-10-16 16:10:26 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-12-25 18:36:52 +00:00
|
|
|
jobs:
|
|
|
|
scan:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.repository_owner == 'haproxy' }}
|
|
|
|
env:
|
|
|
|
COVERITY_SCAN_PROJECT_NAME: 'Haproxy'
|
|
|
|
COVERITY_SCAN_BRANCH_PATTERN: '*'
|
|
|
|
COVERITY_SCAN_NOTIFICATION_EMAIL: 'chipitsine@gmail.com'
|
2022-03-04 09:12:40 +00:00
|
|
|
# We cannot pass the DEBUG at once here because Coverity splits
|
|
|
|
# parameters at whitespaces, without taking quoting into account.
|
|
|
|
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"
|
2020-12-25 18:36:52 +00:00
|
|
|
steps:
|
2022-04-09 20:08:41 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-12-25 18:36:52 +00:00
|
|
|
- name: Install apt dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y \
|
|
|
|
liblua5.3-dev \
|
|
|
|
libsystemd-dev
|
2022-02-02 05:24:58 +00:00
|
|
|
- name: Install QUICTLS
|
|
|
|
run: |
|
|
|
|
QUICTLS=yes scripts/build-ssl.sh
|
2021-01-28 17:58:53 +00:00
|
|
|
- name: Build WURFL
|
2021-04-02 14:39:44 +00:00
|
|
|
run: make -C addons/wurfl/dummy
|
2020-12-25 18:36:52 +00:00
|
|
|
- name: Run Coverity Scan
|
|
|
|
env:
|
|
|
|
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
|
|
|
run: |
|
|
|
|
curl -fsSL "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true
|