Skip to content

Commit ae30559

Browse files
authored
ci: add SCA to the workflow example (#45)
1 parent 433d4f3 commit ae30559

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,31 @@ jobs:
1717
name: Build tutorial
1818
runs-on: ubuntu-24.04
1919
container: ghcr.io/iarsystems/arm
20+
permissions:
21+
security-events: write
22+
actions: read
23+
contents: read
24+
packages: read
2025
steps:
2126
- name: Checkout project
2227
uses: actions/checkout@v4
28+
2329
- name: CMake - Configure
2430
working-directory: tutorial
2531
run: cmake -GNinja -Bbuild
32+
2633
- name: CMake - Build
2734
working-directory: tutorial
2835
run: cmake --build build --verbose
36+
37+
- name: IAR C-STAT Static Analysis
38+
working-directory: tutorial
39+
run: |
40+
ichecks --all --output build/checks.manifest
41+
icstat --checks build/checks.manifest --db build/cstat.db --sarif_dir build analyze -- iccarm tutorial.c
42+
43+
- name: Upload SARIF
44+
uses: github/codeql-action/upload-sarif@v3
45+
with:
46+
sarif_file: tutorial/build/tutorial.c.sarif
47+
category: cstat-analysis

0 commit comments

Comments
 (0)