Skip to content

Coverity Scan

Coverity Scan #16

Workflow file for this run

name: Coverity Scan
on:
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday (Coverity allows max 7 builds/week)
workflow_dispatch: # Manual trigger
jobs:
coverity:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake libboost-dev
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
- name: Debug Coverity Download
run: |
# Test the download URL to see what error we get
curl -v --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \
--form project=unicity-node \
https://scan.coverity.com/download/cxx/linux64 \
-o test-download.txt 2>&1 | head -50
echo "=== Download response ==="
cat test-download.txt | head -20
- name: Coverity Scan
uses: vapier/coverity-scan-action@v1
with:
project: unicity-node
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
command: cmake --build build -j$(nproc)