File tree Expand file tree Collapse file tree 1 file changed +70
-0
lines changed
Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Coverity scan master branch
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : ' 0 0 * * *'
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+ needs : build_wolfssl
35+ runs-on : ubuntu-latest
36+ steps :
37+ - name : Checking out wolfSSH
38+ uses : actions/checkout@v4
39+ with :
40+ ref : master
41+
42+ - name : Checking cache for wolfssl
43+ uses : actions/cache@v4
44+ with :
45+ path : build_dir
46+ key : wolfssh-coverity-wolfssl
47+ fail-on-cache-miss : true
48+
49+ - name : Configure wolfSSH
50+ run : |
51+ ./autogen.sh
52+ ./configure --with-wolfssl=build-dir --enable-all
53+
54+ - name : Check secrets
55+ env :
56+ token_var : ${{ secrets.COVERITY_SCAN_TOKEN_WOLFSSH }}
57+ email_var : ${{ secrets.COVERITY_SCAN_EMAIL }}
58+ run : |
59+ token_len=${#token_var}
60+ echo "$token_len"
61+ email_len=${#email_var}
62+ echo "$email_len"
63+
64+ - uses : vapier/coverity-scan-action@v1
65+ with :
66+ build_language : ' cxx'
67+ project : " wolfSSL/wolfssh"
68+ token : ${{ secrets.COVERITY_SCAN_TOKEN_WOLFSSH }}
69+ email : ${{ secrets.COVERITY_SCAN_EMAIL }}
70+ command : " make"
You can’t perform that action at this time.
0 commit comments