codeql.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. schedule:
  15. - cron: '44 12 * * *'
  16. jobs:
  17. analyze:
  18. name: Analyze
  19. runs-on: ubuntu-latest
  20. permissions:
  21. actions: read
  22. contents: read
  23. security-events: write
  24. strategy:
  25. fail-fast: false
  26. matrix:
  27. language: [ 'javascript', 'python' ]
  28. # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
  29. # Learn more about CodeQL language support at https://git.io/codeql-language-support
  30. steps:
  31. - name: Checkout repository
  32. uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
  33. # Initializes the CodeQL tools for scanning.
  34. - name: Initialize CodeQL
  35. uses: github/codeql-action/init@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # v2
  36. with:
  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: ./path/to/local/query, your-org/your-repo/queries@main
  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@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # v2
  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@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # v2