From a5a6d322430829744a3d75fd384a42bb855a8bb7 Mon Sep 17 00:00:00 2001 From: Steven Bellock Date: Fri, 16 Aug 2024 15:59:24 -0700 Subject: [PATCH] Setup nightly Coverity scanning Fix #1007. Signed-off-by: Steven Bellock --- .github/workflows/coverity.yml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/coverity.yml diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml new file mode 100644 index 00000000000..15f4d077186 --- /dev/null +++ b/.github/workflows/coverity.yml @@ -0,0 +1,35 @@ +# GitHub actions workflow. +# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions + +# https://scan.coverity.com/projects/libspdm +name: Coverity Scan + +on: + schedule: + - cron: '00 8 * * *' + workflow_dispatch: + +jobs: + coverity: + strategy: + matrix: + os: [ubuntu-latest] + cc: [gcc] + runs-on: ${{ matrix.os }} + env: + CC: ${{ matrix.cc }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: CMake + run: | + cmake -DARCH=x64 -DTOOLCHAIN=GCC -DTARGET=Debug -DCRYPTO=mbedtls -B ${{github.workspace}}/build + + - uses: vapier/coverity-scan-action@v1 + with: + email: ${{ vars.COVERITY_SCAN_EMAIL }} + token: ${{ secrets.COVERITY_SCAN_TOKEN }} + command: make -C ${{github.workspace}}/build