forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (36 loc) · 991 Bytes
/
tiiuae-codeql.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
37
38
39
40
41
name: "CodeQL"
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
strategy:
fail-fast: false
matrix:
language: [c-cpp]
product: [ssrc_saluki-v2_default, ssrc_saluki-nxp93_flat]
container:
image: ghcr.io/tiiuae/px4-firmware-builder-base:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_REPO_TOKEN }}
submodules: recursive
fetch-depth: 0
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build
run: |
git config --global --add safe.directory '*'
./packaging/build_px4fw.sh ${{ matrix.product }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3