codeql-analysis.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. name: "CodeQL"
  7. on:
  8. push:
  9. branches: [3.4.x]
  10. pull_request:
  11. # The branches below must be a subset of the branches above
  12. branches: [3.4.x]
  13. schedule:
  14. - cron: '0 8 * * 3'
  15. permissions:
  16. security-events:
  17. write
  18. jobs:
  19. analyze:
  20. name: Analyze
  21. runs-on: ubuntu-20.04
  22. strategy:
  23. fail-fast: false
  24. matrix:
  25. # Override automatic language detection by changing the below list
  26. # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
  27. language: ['javascript', 'python']
  28. # Learn more...
  29. # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
  30. steps:
  31. - name: Checkout repository
  32. uses: actions/checkout@v2
  33. with:
  34. # We must fetch at least the immediate parents so that if this is
  35. # a pull request then we can checkout the head.
  36. fetch-depth: 2
  37. # Initializes the CodeQL tools for scanning.
  38. - name: Initialize CodeQL
  39. uses: github/codeql-action/init@v1
  40. with:
  41. languages: ${{ matrix.language }}
  42. config-file: ./.github/codeql/codeql-config.yml
  43. # If you wish to specify custom queries, you can do so here or in a config file.
  44. # By default, queries listed here will override any specified in a config file.
  45. # Prefix the list here with "+" to use these queries and those in the config file.
  46. # queries: ./path/to/local/query, your-org/your-repo/queries@main
  47. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  48. # If this step fails, then you should remove it and run the build manually (see below)
  49. - name: Autobuild
  50. uses: github/codeql-action/autobuild@v1
  51. # ℹ️ Command-line programs to run using the OS shell.
  52. # 📚 https://git.io/JvXDl
  53. # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
  54. # and modify them (or add more) to build your code if your project
  55. # uses a compiled language
  56. #- run: |
  57. # make bootstrap
  58. # make release
  59. - name: Perform CodeQL Analysis
  60. uses: github/codeql-action/analyze@v1