File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments