codeql-analysis.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. ---
  2. # For most projects, this workflow file will not need changing; you simply need
  3. # to commit it to your repository.
  4. #
  5. # You may wish to alter this file to override the set of languages analyzed,
  6. # or to provide custom queries or build logic.
  7. #
  8. # ******** NOTE ********
  9. # We have attempted to detect the languages in your repository. Please check
  10. # the `language` matrix defined below to confirm you have the correct set of
  11. # supported CodeQL languages.
  12. #
  13. name: "CodeQL"
  14. on:
  15. push:
  16. paths:
  17. - '.github/workflows/codeql-analysis.yml'
  18. - 'frontend/**'
  19. - 'integration-tests/**'
  20. - 'lang/**'
  21. - 'proto/**'
  22. - 'service/**'
  23. branches: [main, next]
  24. pull_request:
  25. paths:
  26. - '.github/workflows/codeql-analysis.yml'
  27. - 'frontend/**'
  28. - 'integration-tests/**'
  29. - 'lang/**'
  30. - 'proto/**'
  31. - 'service/**'
  32. branches: [main, next]
  33. schedule:
  34. - cron: '25 10 * * 5'
  35. jobs:
  36. analyze:
  37. name: Analyze
  38. runs-on: ubuntu-latest
  39. permissions:
  40. actions: read
  41. contents: read
  42. security-events: write
  43. strategy:
  44. fail-fast: false
  45. matrix:
  46. language: ['go', 'javascript']
  47. steps:
  48. - name: Checkout repository
  49. uses: actions/checkout@v4
  50. - name: Setup Go
  51. uses: actions/setup-go@v5
  52. with:
  53. go-version-file: 'service/go.mod'
  54. cache: true
  55. cache-dependency-path: 'service/go.mod'
  56. - name: Setup Node
  57. if: matrix.language == 'javascript'
  58. uses: actions/setup-node@v4
  59. with:
  60. node-version: '22'
  61. # Initializes the CodeQL tools for scanning.
  62. - name: Initialize CodeQL
  63. uses: github/codeql-action/init@v3
  64. with:
  65. languages: ${{ matrix.language }}
  66. - name: Perform CodeQL Analysis
  67. uses: github/codeql-action/analyze@v3
  68. with:
  69. category: "/language:${{matrix.language}}"