Skip to content

Commit aa770f8

Browse files
authored
ci: add SCA to the workflow example
1 parent 433d4f3 commit aa770f8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,23 @@ jobs:
2020
steps:
2121
- name: Checkout project
2222
uses: actions/checkout@v4
23+
2324
- name: CMake - Configure
2425
working-directory: tutorial
2526
run: cmake -GNinja -Bbuild
27+
2628
- name: CMake - Build
2729
working-directory: tutorial
2830
run: cmake --build build --verbose
31+
32+
- name: IAR C-STAT Static Analysis
33+
working-directory: tutorial
34+
run: |
35+
ichecks --all --output build/checks.manifest
36+
icstat --checks build/checks.manifest --db build/cstat.db --sarif_dir build -- iccarm tutorial.c
37+
38+
- name: Upload SARIF
39+
uses: github/codeql-action/upload-sarif@v3
40+
with:
41+
sarif_file: build/tutorial.c.sarif
42+
category: cstat-analysis

0 commit comments

Comments
 (0)