1
0

codeql.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: 'CodeQL'
  2. on:
  3. merge_group:
  4. push:
  5. branches:
  6. - 'main'
  7. - 'stable-*'
  8. pull_request:
  9. branches:
  10. - 'main'
  11. - 'stable-*'
  12. schedule:
  13. - cron: '22 6 * * 1'
  14. jobs:
  15. analyze:
  16. name: Analyze
  17. runs-on: ubuntu-latest
  18. permissions:
  19. actions: read
  20. contents: read
  21. security-events: write
  22. strategy:
  23. fail-fast: false
  24. matrix:
  25. language: ['javascript', 'ruby']
  26. # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
  27. # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
  28. steps:
  29. - name: Checkout repository
  30. uses: actions/checkout@v4
  31. # Initializes the CodeQL tools for scanning.
  32. - name: Initialize CodeQL
  33. uses: github/codeql-action/init@v3
  34. with:
  35. languages: ${{ matrix.language }}
  36. # If you wish to specify custom queries, you can do so here or in a config file.
  37. # By default, queries listed here will override any specified in a config file.
  38. # Prefix the list here with "+" to use these queries and those in the config file.
  39. # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
  40. # queries: security-extended,security-and-quality
  41. # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
  42. # If this step fails, then you should remove it and run the build manually (see below)
  43. - name: Autobuild
  44. uses: github/codeql-action/autobuild@v3
  45. # ℹ️ Command-line programs to run using the OS shell.
  46. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
  47. # If the Autobuild fails above, remove it and uncomment the following three lines.
  48. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
  49. # - run: |
  50. # echo "Run, Build Application using script"
  51. # ./location_of_script_within_repo/buildscript.sh
  52. - name: Perform CodeQL Analysis
  53. uses: github/codeql-action/analyze@v3
  54. with:
  55. category: '/language:${{matrix.language}}'