codeql-analysis.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # For most projects, this workflow file will not need changing; you simply need
  2. # to commit it to your repository.
  3. #
  4. # You may wish to alter this file to override the set of languages analyzed,
  5. # or to provide custom queries or build logic.
  6. #
  7. # ******** NOTE ********
  8. # Currently can only check JS.
  9. #
  10. name: "CodeQL"
  11. on:
  12. push:
  13. branches: [ master ]
  14. pull_request:
  15. # The branches below must be a subset of the branches above
  16. branches: [ master ]
  17. schedule:
  18. - cron: '28 22 * * 5'
  19. jobs:
  20. analyze:
  21. name: Analyze
  22. runs-on: ubuntu-latest
  23. strategy:
  24. fail-fast: false
  25. matrix:
  26. language: [ 'javascript' ]
  27. # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
  28. # Learn more:
  29. # 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
  30. steps:
  31. - name: Checkout repository
  32. uses: actions/checkout@v4
  33. # Initializes the CodeQL tools for scanning.
  34. - name: Initialize CodeQL
  35. uses: github/codeql-action/init@v2
  36. with:
  37. languages: ${{ matrix.language }}
  38. # If you wish to specify custom queries, you can do so here or in a config file.
  39. # By default, queries listed here will override any specified in a config file.
  40. # Prefix the list here with "+" to use these queries and those in the config file.
  41. # queries: ./path/to/local/query, your-org/your-repo/queries@main
  42. - name: Perform CodeQL Analysis
  43. uses: github/codeql-action/analyze@v2