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