Skip to content

Commit 89bcf85

Browse files
committed
Coverity Scan Automation
1. Add GitHub action to run a Coverity scan.
1 parent 1b8e0be commit 89bcf85

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Coverity scan master branch
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
workflow_dispatch:
7+
8+
jobs:
9+
build_wolfssl:
10+
name: Build wolfSSL
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 4
13+
steps:
14+
- name: Checking cache for wolfSSL
15+
uses: actions/cache@v4
16+
id: cache-wolfssl
17+
with:
18+
path: build-dir
19+
key: wolfssh-coverity-wolfssl
20+
lookup-only: true
21+
22+
- name: Build wolfSSL
23+
if: steps.cache-wolfssl.outputs.cache-hit != 'true'
24+
uses: wolfSSL/actions-build-autotools-project@v1
25+
with:
26+
repository: wolfSSL/wolfssl
27+
ref: master
28+
path: wolfssl
29+
configure: --enable-all
30+
check: false
31+
install: true
32+
33+
coverity:
34+
name: Coverity scan
35+
needs: build_wolfssl
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checking out wolfSSH
39+
uses: actions/checkout@v4
40+
with:
41+
ref: master
42+
43+
- name: Checking cache for wolfssl
44+
uses: actions/cache@v4
45+
with:
46+
path: build-dir
47+
key: wolfssh-coverity-wolfssl
48+
fail-on-cache-miss: true
49+
50+
- name: Configure wolfSSH
51+
run: |
52+
./autogen.sh
53+
./configure --with-wolfssl=build-dir --enable-all
54+
55+
- uses: vapier/coverity-scan-action@v1
56+
with:
57+
build_language: 'cxx'
58+
project: "wolfSSH"
59+
token: ${{ secrets.COVERITY_SCAN_TOKEN_WOLFSSH }}
60+
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
61+
command: "make"

0 commit comments

Comments
 (0)