Skip to content

Commit 96c5be0

Browse files
committed
Add codeQL workflow
1 parent 8df34ff commit 96c5be0

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "CodeQL"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
pull_request:
7+
branches:
8+
- main
9+
- develop
10+
- master # for safety reasons
11+
- dev # for safety reasons
12+
13+
jobs:
14+
analyse:
15+
name: Analyse
16+
runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }}
17+
if: github.event.repository.private == false
18+
strategy:
19+
matrix:
20+
sdk: ["$NANOX_SDK", "$NANOSP_SDK", "$STAX_SDK", "$FLEX_SDK"]
21+
container:
22+
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-legacy:latest
23+
24+
steps:
25+
- name: Clone
26+
uses: actions/checkout@v4
27+
with:
28+
submodules: recursive
29+
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: cpp
34+
queries: security-and-quality
35+
36+
- name: Build
37+
run: |
38+
make -j BOLOS_SDK=${{ matrix.sdk }}
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)