codeql.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: "CodeQL"
  2. on:
  3. schedule:
  4. - cron: '33 14 * * 4'
  5. workflow_dispatch:
  6. permissions:
  7. contents: read
  8. jobs:
  9. analyze:
  10. if: github.repository == 'emqx/emqx'
  11. name: Analyze
  12. runs-on: ubuntu-22.04
  13. timeout-minutes: 360
  14. permissions:
  15. actions: read
  16. security-events: write
  17. strategy:
  18. fail-fast: false
  19. matrix:
  20. branch:
  21. - master
  22. - release-57
  23. - release-58
  24. language:
  25. - cpp
  26. - python
  27. steps:
  28. - name: Checkout repository
  29. uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
  30. with:
  31. ref: ${{ matrix.branch }}
  32. - name: Initialize CodeQL
  33. uses: github/codeql-action/init@7e187e1c529d80bac7b87a16e7a792427f65cf02 # v2.15.5
  34. with:
  35. languages: ${{ matrix.language }}
  36. - name: Build
  37. if: matrix.language == 'cpp'
  38. env:
  39. PROFILE: emqx-enterprise
  40. run: |
  41. ./scripts/buildx.sh --profile emqx-enterprise --pkgtype rel
  42. - name: Perform CodeQL Analysis
  43. uses: github/codeql-action/analyze@7e187e1c529d80bac7b87a16e7a792427f65cf02 # v2.15.5
  44. with:
  45. category: "/language:${{matrix.language}}"