Skip to content

Commit 2de98f7

Browse files
committed
Coverity Code Scan
1 parent 221d4e7 commit 2de98f7

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "security-coverity-scan"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "main/**"
9+
- ".github/workflows/code-scan-coverity.yml"
10+
11+
permissions: # added using https://github.com/step-security/secure-workflows
12+
contents: read
13+
14+
env:
15+
XIAOZHI_VERSION: "2.0.4"
16+
17+
jobs:
18+
coverity-cpp-code-scan:
19+
runs-on: ubuntu-latest
20+
container: espressif/idf:release-v5.5
21+
22+
steps:
23+
- name: Harden Runner
24+
uses: step-security/harden-runner@v2
25+
with:
26+
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
27+
28+
- name: Checkout Github code
29+
uses: actions/checkout@v5
30+
31+
- name: Install missing tools for Coverity scan
32+
run: |
33+
apt-get update
34+
apt-get install -y file
35+
36+
- name: Coverity scan with build command
37+
uses: vapier/coverity-scan-action@v1
38+
with:
39+
project: esp32-xiaozhi
40+
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
41+
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
42+
version: ${{ env.XIAOZHI_VERSION }}
43+
command: bash -c "source $IDF_PATH/export.sh && python scripts/release.py jiuchuan-s3 --name jiuchuan-s3"

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,10 @@ v1 的稳定版本为 1.9.2,可以通过 `git checkout v1` 来切换到 v1 版
166166
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=78/xiaozhi-esp32&type=Date" />
167167
</picture>
168168
</a>
169+
170+
## Coverity scan
171+
172+
<a href="https://scan.coverity.com/projects/esp32-xiaozhi">
173+
<img alt="Coverity Scan Build Status"
174+
src="https://scan.coverity.com/projects/32587/badge.svg"/>
175+
</a>

README_en.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,11 @@ If you have any ideas or suggestions, please feel free to raise Issues or join t
169169
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=78/xiaozhi-esp32&type=Date" />
170170
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=78/xiaozhi-esp32&type=Date" />
171171
</picture>
172-
</a>
172+
</a>
173+
174+
## Coverity scan
175+
176+
<a href="https://scan.coverity.com/projects/esp32-xiaozhi">
177+
<img alt="Coverity Scan Build Status"
178+
src="https://scan.coverity.com/projects/32587/badge.svg"/>
179+
</a>

README_ja.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,11 @@ Feishuドキュメントチュートリアルをご覧ください:
165165
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=78/xiaozhi-esp32&type=Date" />
166166
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=78/xiaozhi-esp32&type=Date" />
167167
</picture>
168-
</a>
168+
</a>
169+
170+
## Coverity scan
171+
172+
<a href="https://scan.coverity.com/projects/esp32-xiaozhi">
173+
<img alt="Coverity Scan Build Status"
174+
src="https://scan.coverity.com/projects/32587/badge.svg"/>
175+
</a>

0 commit comments

Comments
 (0)