forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (35 loc) · 1.1 KB
/
tiiuae-coverity-scan.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: tiiuae-px4-coverity-scan
on:
workflow_dispatch:
pull_request:
branches: [ main ]
jobs:
coverity:
runs-on: px4-self-hosted-coverity
steps:
- name: Checkout px4-firmware
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_REPO_TOKEN }}
submodules: 'recursive'
fetch-depth: 0
- name: Fetch submodule tags
run: |
git submodule foreach --recursive git fetch --tags
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run coverity scan
run:
docker run --rm -v "$(pwd):/main_ws" ghcr.io/tiiuae/px4-coverity-scan-image:latest
- name: Update summary
run:
cat cov-analyze-result.txt >> $GITHUB_STEP_SUMMARY
- name: Upload coverity scan results
uses: actions/[email protected]
with:
name: coverity-html-report-${{ github.event.repository.name }}
path: coverity-output