]> begriffs open source - cmsis/blob - .github/workflows/codeql-analysis.yml
GitHub: Add LinkChecker for DoxyGen.
[cmsis] / .github / workflows / codeql-analysis.yml
1 name: "CodeQL"
2
3 on:
4   workflow_dispatch:
5   push:
6     branches: [ develop ]
7     paths:
8       - 'CMSIS/Core/**'
9       - 'CMSIS/Core_A/**'
10       - 'CMSIS/CoreValidation/**'
11       - 'Device/ARM/**'
12   pull_request:
13     branches: [ develop ]
14     paths:
15       - '.github/workflows/codeql-analysis.yml'
16       - 'CMSIS/Core/**'
17       - 'CMSIS/Core_A/**'
18       - 'CMSIS/CoreValidation/**'
19       - 'Device/ARM/**'
20 jobs:
21   analyze:
22     name: Analyze
23     runs-on: ubuntu-latest
24     container: 
25       image: ghcr.io/jonatanantoni/cmsis/linux.gnu:latest
26     permissions:
27       actions: read
28       contents: read
29       security-events: write
30
31     strategy:
32       fail-fast: false
33       matrix:
34         language: [ 'cpp' ]
35
36     steps:
37     - name: Checkout repository
38       uses: actions/checkout@v2
39
40     # Initializes the CodeQL tools for scanning.
41     - name: Initialize CodeQL
42       uses: github/codeql-action/init@v1
43       with:
44         languages: ${{ matrix.language }}
45
46     - run: |
47        ln -s /root/.rtebuild /github/home/.rtebuild
48        cd CMSIS/CoreValidation/Tests
49        python3 build.py -c GCC -o low build
50
51     - name: Perform CodeQL Analysis
52       uses: github/codeql-action/analyze@v1