Skip to content

Commit a565e17

Browse files
lovesegfaultMic92
authored andcommitted
ci: Add Coverity Scan workflow for static analysis
1 parent 00f4a86 commit a565e17

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/coverity.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Coverity Scan"
2+
3+
on:
4+
# FIXME: This is here for testing, should be removed before merging
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
- coverity-test
10+
11+
permissions: read-all
12+
13+
jobs:
14+
coverity:
15+
name: Coverity static analysis
16+
runs-on: ubuntu-24.04
17+
timeout-minutes: 120
18+
steps:
19+
- uses: actions/checkout@v5
20+
with:
21+
fetch-depth: 0
22+
- uses: ./.github/actions/install-nix-action
23+
with:
24+
dogfood: false
25+
extra_nix_config: experimental-features = nix-command flakes
26+
- name: configure
27+
run: nix develop --configure
28+
- uses: vapier/coverity-scan-action@v1
29+
with:
30+
project: NixOS/nix
31+
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
32+
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
33+
build_language: cxx
34+
command: nix develop --build
35+
version: ${{ github.sha }}

0 commit comments

Comments
 (0)