codeql-analysis.yml 1.2 KB

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