codeql.yml 747 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: "codeql"
  2. concurrency:
  3. group: ${{ github.workflow }}-${{ github.ref }}
  4. cancel-in-progress: ${{ github.event_name == 'pull_request' }}
  5. on:
  6. push:
  7. branches: [ "master" ]
  8. pull_request:
  9. # The branches below must be a subset of the branches above
  10. branches: [ "master" ]
  11. workflow_dispatch:
  12. jobs:
  13. analyze:
  14. name: Analyze
  15. runs-on: ubuntu-latest
  16. permissions:
  17. actions: read
  18. contents: read
  19. security-events: write
  20. steps:
  21. - uses: actions/checkout@v4
  22. - uses: ./.github/actions/setup
  23. - name: Initialize CodeQL
  24. uses: github/codeql-action/init@v3
  25. with:
  26. languages: cpp
  27. - run: make
  28. - name: Perform CodeQL Analysis
  29. uses: github/codeql-action/analyze@v3