mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 20:16:03 +01:00
ci: Add Coverity Scan workflow for static analysis
This commit is contained in:
parent
00f4a860e7
commit
a565e173bf
1 changed files with 35 additions and 0 deletions
35
.github/workflows/coverity.yml
vendored
Normal file
35
.github/workflows/coverity.yml
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: "Coverity Scan"
|
||||
|
||||
on:
|
||||
# FIXME: This is here for testing, should be removed before merging
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- coverity-test
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
coverity:
|
||||
name: Coverity static analysis
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: ./.github/actions/install-nix-action
|
||||
with:
|
||||
dogfood: false
|
||||
extra_nix_config: experimental-features = nix-command flakes
|
||||
- name: configure
|
||||
run: nix develop --configure
|
||||
- uses: vapier/coverity-scan-action@v1
|
||||
with:
|
||||
project: NixOS/nix
|
||||
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
|
||||
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||
build_language: cxx
|
||||
command: nix develop --build
|
||||
version: ${{ github.sha }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue