1
0

codeql.yml 2.3 KB

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