Skip to content

Commit

Permalink
Setup nightly Coverity scanning
Browse files Browse the repository at this point in the history
Fix #1007.

Signed-off-by: Steven Bellock <sbellock@nvidia.com>
  • Loading branch information
steven-bellock committed Aug 16, 2024
1 parent afcb0de commit a5a6d32
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a5a6d32

Please sign in to comment.