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