codeql-analysis.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. steps:
  30. - name: Checkout repository
  31. uses: actions/checkout@v2
  32. # Initializes the CodeQL tools for scanning.
  33. - name: Initialize CodeQL
  34. uses: github/codeql-action/init@v2
  35. with:
  36. languages: cpp
  37. queries: security-and-quality
  38. - run: |
  39. ln -s /root/.rtebuild /github/home/.rtebuild
  40. cd CMSIS/CoreValidation/Tests
  41. python3 build.py -c GCC -o low build
  42. - name: Perform CodeQL Analysis
  43. uses: github/codeql-action/analyze@v2