codeql.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: "CodeQL"
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. # The branches below must be a subset of the branches above
  7. branches: [main]
  8. # schedule:
  9. # - cron: '23 12 * * 4'
  10. jobs:
  11. analyze:
  12. name: Analyze Code
  13. runs-on: ubuntu-latest
  14. timeout-minutes: 6
  15. permissions:
  16. actions: read
  17. contents: read
  18. security-events: write
  19. strategy:
  20. matrix:
  21. language: ["javascript-typescript"]
  22. # CodeQL supports "c-cpp", "csharp", "go", "java-kotlin", "javascript-typescript", "python", "ruby", "swift"
  23. # Learn more:
  24. # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
  25. steps:
  26. - name: Checkout repository and submodules
  27. uses: actions/checkout@v4
  28. with:
  29. submodules: recursive
  30. # Initializes the CodeQL tools for scanning.
  31. - name: Initialize CodeQL
  32. uses: github/codeql-action/init@v3
  33. with:
  34. languages: ${{ matrix.language }}
  35. # If you wish to specify custom queries, you can do so here or in a config file.
  36. # By default, queries listed here will override any specified in a config file.
  37. # Prefix the list here with "+" to use these queries and those in the config file.
  38. # queries: ./path/to/local/query, your-org/your-repo/queries@main
  39. - name: Perform CodeQL Analysis
  40. uses: github/codeql-action/analyze@v3