codeql.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. name: 'CodeQL'
  2. on:
  3. pull_request:
  4. # The branches below must be a subset of the branches above
  5. branches: ['master']
  6. paths:
  7. - '**.js'
  8. - '**.ejs'
  9. - '**.tsx'
  10. - '**.ts'
  11. - '**.py'
  12. - '!tests/**'
  13. schedule:
  14. - cron: '44 12 * * 1'
  15. jobs:
  16. analyze:
  17. name: Analyze
  18. runs-on: ubuntu-latest
  19. permissions:
  20. actions: read
  21. contents: read
  22. security-events: write
  23. strategy:
  24. fail-fast: false
  25. matrix:
  26. language: ['javascript', 'python']
  27. # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
  28. # Learn more about CodeQL language support at https://git.io/codeql-language-support
  29. steps:
  30. - name: Checkout repository
  31. uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
  32. # Initializes the CodeQL tools for scanning.
  33. - name: Initialize CodeQL
  34. uses: github/codeql-action/init@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3
  35. with:
  36. trap-caching: false
  37. config-file: ./.github/codeql/codeql-config.yml
  38. languages: ${{ matrix.language }}
  39. # If you wish to specify custom queries, you can do so here or in a config file.
  40. # By default, queries listed here will override any specified in a config file.
  41. # Prefix the list here with "+" to use these queries and those in the config file.
  42. # queries: security-extended
  43. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  44. # If this step fails, then you should remove it and run the build manually (see below)
  45. # - name: Autobuild
  46. # uses: github/codeql-action/autobuild@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3
  47. # ℹ️ Command-line programs to run using the OS shell.
  48. # 📚 https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
  49. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  50. # and modify them (or add more) to build your code if your project
  51. # uses a compiled language
  52. #- run: |
  53. # make bootstrap
  54. # make release
  55. - name: Perform CodeQL Analysis
  56. uses: github/codeql-action/analyze@0116bc2df50751f9724a2e35ef1f24d22f90e4e1 # v2.22.3
  57. with:
  58. category: '/language:${{matrix.language}}'