codeql-analysis.yml 912 B

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