codeql.yml 2.6 KB

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