Skip to content

Commit 2907005

Browse files
aidangarskedanielinux
authored andcommitted
Add coverity for wolfIP
1 parent 1259c70 commit 2907005

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/coverity.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Coverity Scan
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC
6+
workflow_dispatch:
7+
8+
# Minimal permissions - read-only access to repository contents
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
coverity:
18+
name: Coverity Scan
19+
runs-on: ubuntu-latest
20+
21+
# Only run from the original repo (not forks) and only on default branch
22+
# workflow_dispatch requires write access, so only maintainers can trigger manually
23+
if: github.repository == 'wolfSSL/wolfip' && github.ref_name == github.event.repository.default_branch
24+
25+
steps:
26+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
27+
28+
- name: Install dependencies
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y libwolfssl-dev check
32+
33+
- name: Run Coverity Scan
34+
uses: vapier/coverity-scan-action@2068473c7bdf8c2fb984a6a40ae76ee7facd7a85 # v1
35+
with:
36+
project: wolfIP
37+
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
38+
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
39+
command: make

0 commit comments

Comments
 (0)