Skip to content

Commit 032ab3b

Browse files
committed
Add Coverity scan workflow
1 parent 898815f commit 032ab3b

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Coverity Scan master branch on a weekly basis
2+
3+
#on:
4+
# workflow_dispatch:
5+
# schedule:
6+
# - cron: "7 3 * * 3"
7+
on:
8+
push:
9+
branches: [ 'master', 'main', 'release/**' ]
10+
11+
jobs:
12+
coverity:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
ref: master
18+
19+
- name: Configure wolfSSL
20+
run: |
21+
./autogen.sh
22+
./configure --enable-all
23+
24+
- name: Check secrets
25+
env:
26+
token_var: ${{ secrets.COVERITY_SCAN_TOKEN }}
27+
email_var: ${{ secrets.COVERITY_SCAN_EMAIL }}
28+
run: |
29+
token_len=${#token_var}
30+
echo "$token_len"
31+
email_len=${#email_var}
32+
echo "$email_len"
33+
34+
- uses: vapier/coverity-scan-action@v1
35+
with:
36+
build_language: 'cxx'
37+
project: "wolfSSL/wolfssl"
38+
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
39+
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
40+
command: "make"

0 commit comments

Comments
 (0)