codeql-analysis.yml 925 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. ls -la
  34. python build.py -c GCC -o low build
  35. - name: Perform CodeQL Analysis
  36. uses: github/codeql-action/analyze@v1